From 09155e88a34c211dd9429a70fde432c062af77e0 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 21 Apr 2018 03:06:02 +0100 Subject: Fix many small file-handling problems --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app.ts') 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 => { 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', -- cgit v1.2.1