aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-21 03:07:02 +0100
committerTom Harley2018-04-21 03:07:02 +0100
commit4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec (patch)
tree59c487fc0019040448a9713b3c4c146a560ec13d /src/app.ts
parentMerge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff)
parentFix many small file-handling problems (diff)
downloadmedicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.tar.gz
medicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.zip

Merge branch ‘trh/files’ into trh/gets

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 6a595f6..a6e0d27 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -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',