aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-21 03:06:02 +0100
committerTom Harley2018-04-21 03:06:02 +0100
commit09155e88a34c211dd9429a70fde432c062af77e0 (patch)
treefc64decd667384a07082d8ced77c6e83e7943af5 /src/app.ts
parentInclude authoris/zation headers in CORS (diff)
downloadmedicine-09155e88a34c211dd9429a70fde432c062af77e0.tar.gz
medicine-09155e88a34c211dd9429a70fde432c062af77e0.zip

Fix many small file-handling problems

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',