diff options
| author | Tom Harley | 2018-04-13 16:21:46 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-13 16:21:46 +0100 |
| commit | 1905365083dc63d06de2a169c18163f4b04e231d (patch) | |
| tree | 10ee91cbdb921a2f8c74291eeecca9cae9c9c7ec /src/FileRouter.ts | |
| parent | Fix minor places, and add Postman collection (diff) | |
| parent | Merge branch 'trh/gets' of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-... (diff) | |
| download | medicine-1905365083dc63d06de2a169c18163f4b04e231d.tar.gz medicine-1905365083dc63d06de2a169c18163f4b04e231d.zip | |
Merge branch ‘trh/gets’ of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/project-code into trh/gets
Diffstat (limited to 'src/FileRouter.ts')
| -rw-r--r-- | src/FileRouter.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts index bbcc0f2..b750094 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -617,6 +617,7 @@ export class FileRouter { ): Promise<void> => { logger.debug(`Searching for user ${name}`); const user: User | null = await User.findOne({ + include: [{all: true}], where: { username: name } @@ -637,7 +638,6 @@ export class FileRouter { req: Request, res: Response, next: NextFunction, projectName: string ): Promise<void> => { - logger.debug(`Searching for project ${projectName}`); res.locals.project = await Project.findOne({ where: { name: projectName @@ -708,6 +708,7 @@ export class FileRouter { ): Promise<void> => { logger.debug(`Searching for file ${fileId}`); const file: File | null = await File.findOne({ + include: [{all: true}], where: { uuid: fileId } |
