From 362d4d570f090edf242bb95e2c26b11cb48818a2 Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 20 Oct 2023 18:06:56 -0500 Subject: [PATCH] fix query params fetch --- src/routes/v1/multisigAuthenticationRouter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/v1/multisigAuthenticationRouter.ts b/src/routes/v1/multisigAuthenticationRouter.ts index 19e5495..47fdc21 100644 --- a/src/routes/v1/multisigAuthenticationRouter.ts +++ b/src/routes/v1/multisigAuthenticationRouter.ts @@ -37,15 +37,15 @@ multisigAuthenticationRouter.get( '/multisigAuthentication', async (req: Request, res: Response, next) => { try { - const { safeAddress, network } = req.body; + const { safeAddress, network } = req.query; if (!safeAddress || !network) { res.status(422).json({ message: errorMessagesEnum.MISSING_LOGIN_DATA }); return; } const multisigSession = await findNonExpiredMultisigSessions( - safeAddress, - network, + String(safeAddress), + Number(network), ); res.send({ active: multisigSession ? true : false });