From 30b013bce18df1a308c8bd00bc0002c9a5b70e0a Mon Sep 17 00:00:00 2001 From: Ordis <134585663+OrdisPrime@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:40:55 +0100 Subject: [PATCH] correct request handler types --- src/controllers/api/setActiveQuestController.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/api/setActiveQuestController.ts b/src/controllers/api/setActiveQuestController.ts index 582e2326..409c8869 100644 --- a/src/controllers/api/setActiveQuestController.ts +++ b/src/controllers/api/setActiveQuestController.ts @@ -3,11 +3,14 @@ import { getAccountIdForRequest } from "@/src/services/loginService"; import { RequestHandler } from "express"; export const setActiveQuestController: RequestHandler< - unknown, - unknown, - unknown, + Record, + undefined, + undefined, { quest: string | undefined } > = async (req, res) => { + console.log("req params", JSON.stringify(req.params, null, 2)); + console.log("req query", JSON.stringify(req.query, null, 2)); + console.log("req body", JSON.stringify(req.body, null, 2)); const accountId = await getAccountIdForRequest(req); const quest = req.query.quest;