diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/FileRouter.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts index e890241..f4d2fdc 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -716,11 +716,8 @@ export class FileRouter { uuid: fileId } }); - if (file == null) { - return next(new RequestError(404, 'file_not_found')); - } else { - res.locals.file = file; - } + + res.locals.file = file; next(); } ); |
