aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
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',