🐛 Fix request timeout on subscribe query
This commit is contained in:
@@ -19,7 +19,7 @@ export default async function handler(
|
|||||||
return res.status(401).json({
|
return res.status(401).json({
|
||||||
error: 'Unauthorized',
|
error: 'Unauthorized',
|
||||||
})
|
})
|
||||||
return Number(challenge)
|
return res.status(200).send(Number(challenge))
|
||||||
}
|
}
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
if (!env.WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID)
|
if (!env.WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default async function handler(
|
|||||||
token,
|
token,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
return Number(challenge)
|
return res.status(200).send(Number(challenge))
|
||||||
}
|
}
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
const workspaceId = req.query.workspaceId as string
|
const workspaceId = req.query.workspaceId as string
|
||||||
|
|||||||
Reference in New Issue
Block a user