diff options
Diffstat (limited to 'src/FileRouter.ts')
| -rw-r--r-- | src/FileRouter.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts index 5b8f98e..5c5d651 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -172,7 +172,7 @@ const getProperties: Middleware = ( const postProperties: Middleware = ( req: Request, res: Response, next: NextFunction ): void => { - logger.debug('Editing server properties'); + console.log('Editing server properties'); res.locals.modified = true; for (const newProp of req.body) { const prop: Property | undefined = serverConfig.find( @@ -193,6 +193,7 @@ const postProperties: Middleware = ( return; } } + console.log("Posted Properties successfully"); next(); }; @@ -428,7 +429,7 @@ const postUsername: Middleware = async( return; } } - + await user.save(); next(); }; @@ -734,7 +735,8 @@ const postFilePath: Middleware = async(req: Request, res: Response, next: NextFu // Sets final if requested if (res.locals.file && qH.isFinal(req)) { - res.locals.file.status = 'final'; + res.locals.file.status = 'preprocessing'; + // start file conversion } // Sets Metadata if requested @@ -872,7 +874,7 @@ export class FileRouter { // File access this.router.get ('/projects/:project_name/files/:path', getFilePath); this.router.post('/projects/:project_name/files/:path', - upload.single('userfile'), postFilePath); + upload.single('userfile'), postFilePath); this.router.get ('/projects/:project_name/files_by_id/:id', getFileId); } |
