From 59d2c5c4b1dbc929f4f22192b781c0acd35eb78e Mon Sep 17 00:00:00 2001 From: jw255 Date: Wed, 11 Apr 2018 00:06:25 +0100 Subject: oh god --- src/FileRouter.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/FileRouter.ts') diff --git a/src/FileRouter.ts b/src/FileRouter.ts index 4d68b6d..630f64f 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -444,8 +444,10 @@ const postProjectName: Middleware = let promise: PromiseLike | null = null; if (project == null) { const file: File = new File({ + uuid: uuid.generate(), mimetype: 'inode/directory' }); + console.log(req.params.project_name) promise = file.save(); project = new Project({ name: req.params.project_name, @@ -454,8 +456,11 @@ const postProjectName: Middleware = } project.metadata = req.body; // tslint:disable-next-line:await-promise + console.log("anything prequel") await promise; + console.log("anything") await project.save(); + console.log("anything part 2") next(); }; -- cgit v1.2.1