diff options
| author | Tom Harley | 2018-04-21 03:06:02 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-21 03:06:02 +0100 |
| commit | 09155e88a34c211dd9429a70fde432c062af77e0 (patch) | |
| tree | fc64decd667384a07082d8ced77c6e83e7943af5 /src/app.ts | |
| parent | Include authoris/zation headers in CORS (diff) | |
| download | medicine-09155e88a34c211dd9429a70fde432c062af77e0.tar.gz medicine-09155e88a34c211dd9429a70fde432c062af77e0.zip | |
Fix many small file-handling problems
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', |
