From 10a85e9401271308e6477e9e39d291e898ef4d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 23 Oct 2024 16:57:23 -0400 Subject: [PATCH] fix: another missing await --- src/controllers/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/helpers.js b/src/controllers/helpers.js index 3d40445611..7be6468f88 100644 --- a/src/controllers/helpers.js +++ b/src/controllers/helpers.js @@ -133,7 +133,7 @@ helpers.notAllowed = async function (req, res, error) { if (req.loggedIn || req.uid === -1) { if (res.locals.isAPI) { if (req.originalUrl.startsWith(`${relative_path}/api/v3`)) { - helpers.formatApiResponse(403, res, error); + await helpers.formatApiResponse(403, res, error); } else { res.status(403).json({ path: req.path.replace(/^\/api/, ''),