I have a route that receives a webhook from this Open Table like service called Tripleseat. Every time one of our team members creates an event there, I create a task on Asana. If they update the event there I update the task.To know if the task already exists or not, I created a table on supabase that stores the tripleseat ID and the Asana task ID. So when the webhook fires up, I check if a task already exists associated with that Tripleseat event ID or not. That determines if it is an update or a create on the Asana side of things.
I found this on Tripleseat’s documentation:
What to do after receiving a Webhook POST
Important: Return a status 200 after successfully receiving a POST from our Webhook service. Failing to do this will result in our system re-sending the same POST several more times (it assumes it has failed without a 200 status response). After enough successive failures, our system will deactivate the Webhook altogether!*
Is there a way I can send the response right away using Next JS?
Thank you in advance!