aboutsummaryrefslogtreecommitdiff
path: root/src/FileRouter.ts
diff options
context:
space:
mode:
authorHafeez2018-04-13 16:37:01 +0100
committerHafeez2018-04-13 16:37:01 +0100
commitd8688e99fd945122548876466dece0cca8bc315b (patch)
treec092cbb26a84fde6bc9389d9b01b9c5db356962d /src/FileRouter.ts
parentMerge branch 'trh/gets' of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-... (diff)
downloadmedicine-d8688e99fd945122548876466dece0cca8bc315b.tar.gz
medicine-d8688e99fd945122548876466dece0cca8bc315b.zip

added include

Diffstat (limited to 'src/FileRouter.ts')
-rw-r--r--src/FileRouter.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index b750094..990110a 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -639,6 +639,7 @@ export class FileRouter {
projectName: string
): Promise<void> => {
res.locals.project = await Project.findOne({
+ include: [{all: true}],
where: {
name: projectName
}