From 975f5271720c554eaebf17fa35b5cadcc6ed4c7f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 10 Mar 2020 07:24:41 +0100 Subject: [PATCH] fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 81997ef..7f1c3b1 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ function get_handler ({ module_folder, file, opts, rethrow }) { const handler = require (path.join (process.cwd (), module_folder, file)); return (req, res, next) => { - new Promise ((res) => res(handler (req, res, next, opts))) + new Promise ((resolve) => resolve (handler (req, res, next, opts))) .catch ((e) => { if (rethrow) throw e;