2
0

🐛 Attempt to fix waitUntil

This commit is contained in:
Baptiste Arnaud
2024-04-16 16:34:19 +02:00
parent d45aed76e8
commit 95928c54da
2 changed files with 2 additions and 4 deletions

View File

@@ -56,9 +56,7 @@ export default async function handler(
if (ctx?.get?.().waitUntil) {
ctx
.get()
.waitUntil(() =>
processWhatsAppReply({ entry, workspaceId, credentialsId })
)
.waitUntil(processWhatsAppReply({ entry, workspaceId, credentialsId }))
return res.status(200).json({ message: 'Message is being processed.' })
}
const { message } = await processWhatsAppReply({