mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: do not wait for Delete notification
This commit is contained in:
parent
82578b94c3
commit
65ba7054fb
1 changed files with 7 additions and 5 deletions
|
@ -731,11 +731,6 @@ const eventController = {
|
|||
}
|
||||
}
|
||||
|
||||
// notify local events only
|
||||
if (!event.ap_id) {
|
||||
await notifier.notifyEvent('Delete', event.id)
|
||||
}
|
||||
|
||||
// unassociate child events
|
||||
if (event.recurrent) {
|
||||
await Event.update({ parentId: null }, { where: { parentId: event.id } })
|
||||
|
@ -753,6 +748,13 @@ const eventController = {
|
|||
}
|
||||
|
||||
res.sendStatus(200)
|
||||
|
||||
// notify local events only
|
||||
if (!event.ap_id) {
|
||||
notifier.notifyEvent('Delete', event.id)
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
res.sendStatus(403)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue