From c37582b51b057e0d812411a716a175ff81c53484 Mon Sep 17 00:00:00 2001 From: Taylor Schley Date: Mon, 22 Nov 2021 16:46:19 -0600 Subject: [PATCH] fix: render returns html --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 037b060..7d65fba 100644 --- a/src/index.js +++ b/src/index.js @@ -70,9 +70,10 @@ function viewsMiddleware( if (autoRender) { ctx.body = html - } else { - return Promise.resolve(html) + return html } + + return Promise.resolve(html) }) } })