diff options
| author | Tom Harley | 2018-04-21 03:07:02 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-21 03:07:02 +0100 |
| commit | 4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec (patch) | |
| tree | 59c487fc0019040448a9713b3c4c146a560ec13d /src/app.ts | |
| parent | Merge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff) | |
| parent | Fix many small file-handling problems (diff) | |
| download | medicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.tar.gz medicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.zip | |
Merge branch ‘trh/files’ into trh/gets
Diffstat (limited to 'src/app.ts')
| -rw-r--r-- | src/app.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ class App { async(req: ex.Request, res: ex.Response, next: ex.NextFunction): Promise<void> => { if (res.locals.function) { - res.locals.function.bind(res)(res.locals.data); + res.locals.function.bind(res)(await res.locals.data); } else { res.json({ status: 'success', |
