aboutsummaryrefslogtreecommitdiff
path: root/src/FileRouter.ts
diff options
context:
space:
mode:
authorjw2552018-04-16 16:08:08 +0100
committerjw2552018-04-16 16:08:08 +0100
commitd628ed540c883764eff623c7a059bcb588c017bc (patch)
tree18e5a1a24fe2fca3bc12103419b1c74be08e9e4f /src/FileRouter.ts
parentfile upload works, i thnk (diff)
downloadmedicine-d628ed540c883764eff623c7a059bcb588c017bc.tar.gz
medicine-d628ed540c883764eff623c7a059bcb588c017bc.zip

nothing major

Diffstat (limited to 'src/FileRouter.ts')
-rw-r--r--src/FileRouter.ts3
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,