I’m connecting Asana to another app and when a task is deleted in my Asana project I want that same task (which is previously created using integration) deleted from the other app too.
When I receive the POST from the webhook it looks like I get 2 events for the same Asana action.
I am confused by this and it causes my solution to stop because the 2nd event cannot successfully delete because the instance of the task in the other app is already deleted by processing the 1st event.
Am I missing something obvious here?
{
“method”: “post”,
“path”: “/”,
“body”: {
“events”: [
{
“user”: {
“gid”: “1201614593059438”,
“resource_type”: “user”
},
“created_at”: “2022-08-26T01:16:09.073Z”,
“action”: “deleted”,
“resource”: {
“gid”: “1202866666221266”,
“resource_type”: “task”
},
“parent”: null
},
{
“user”: {
“gid”: “1201614593059438”,
“resource_type”: “user”
},
“created_at”: “2022-08-26T01:16:12.887Z”,
“action”: “deleted”,
“resource”: {
“gid”: “1202866666221266”,
“resource_type”: “task”
},
“parent”: null
}
]
}