diff options
| author | jw255 | 2018-04-11 00:06:25 +0100 |
|---|---|---|
| committer | jw255 | 2018-04-11 00:06:25 +0100 |
| commit | 59d2c5c4b1dbc929f4f22192b781c0acd35eb78e (patch) | |
| tree | a759ae564c0445540b73afc4d836efcb7acee85b | |
| parent | sth works maybe (diff) | |
| download | medicine-59d2c5c4b1dbc929f4f22192b781c0acd35eb78e.tar.gz medicine-59d2c5c4b1dbc929f4f22192b781c0acd35eb78e.zip | |
oh god
| -rw-r--r-- | src/FileRouter.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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<File> | 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(); }; |
