Skip to content

Commit

Permalink
fix query params fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Oct 20, 2023
1 parent 32c76cd commit 362d4d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/v1/multisigAuthenticationRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 362d4d5

Please sign in to comment.