2
0

🐛 Fix request timeout on subscribe query

This commit is contained in:
Baptiste Arnaud
2024-04-16 15:49:47 +02:00
parent 5a99493ced
commit d45aed76e8
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ export default async function handler(
return res.status(401).json({
error: 'Unauthorized',
})
return Number(challenge)
return res.status(200).send(Number(challenge))
}
if (req.method === 'POST') {
if (!env.WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID)

View File

@@ -43,7 +43,7 @@ export default async function handler(
token,
},
})
return Number(challenge)
return res.status(200).send(Number(challenge))
}
if (req.method === 'POST') {
const workspaceId = req.query.workspaceId as string