From df49a8462caf1cf4eea5c9f386322dae5e14dc4f Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 13 Apr 2021 12:41:47 +0100 Subject: fix(cli/dts): Make respondWith() return a Promise (#10128) --- runtime/js/40_http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js index 18ead84c3..6b9d3dca6 100644 --- a/runtime/js/40_http.js +++ b/runtime/js/40_http.js @@ -106,8 +106,8 @@ return array; } - function createRespondWith(responseSenderRid, connRid) { - return async function (resp) { + function createRespondWith(responseSenderRid) { + return async function respondWith(resp) { if (resp instanceof Promise) { resp = await resp; } -- cgit v1.2.3