diff options
| author | jw255 | 2018-04-16 16:08:08 +0100 |
|---|---|---|
| committer | jw255 | 2018-04-16 16:08:08 +0100 |
| commit | d628ed540c883764eff623c7a059bcb588c017bc (patch) | |
| tree | 18e5a1a24fe2fca3bc12103419b1c74be08e9e4f /src/FileRouter.ts | |
| parent | file upload works, i thnk (diff) | |
| download | medicine-d628ed540c883764eff623c7a059bcb588c017bc.tar.gz medicine-d628ed540c883764eff623c7a059bcb588c017bc.zip | |
nothing major
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 9a7dcac..f7a1809 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -689,6 +689,7 @@ export class FileRouter { // TODO Rewrite using sub-queries instead of repeated queries. while (fileNames.length > 2) { const fileOrNull: File | null = await File.findOne({ + include: [{all: true}], where: { name: fileNames[0], parentFolder: file @@ -703,7 +704,7 @@ export class FileRouter { } const parentFolder: File | null = await File.findOne({ include: [ - { model: File, as: 'containedFilesInternal'}, + { model: File, as: 'containedFilesInternal'} ], where: { //parentFolder: file, |
