mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
fix: Handle webhooks correctly during socket reconnection
This commit is contained in:
parent
9d07178e57
commit
b76ca9547f
1 changed files with 5 additions and 3 deletions
|
@ -30,9 +30,11 @@ export default class extends BaseModel {
|
|||
case ActionTypes.SOCKET_RECONNECT_HANDLE:
|
||||
Webhook.all().delete();
|
||||
|
||||
payload.webhooks.forEach((webhook) => {
|
||||
Webhook.upsert(webhook);
|
||||
});
|
||||
if (payload.webhooks) {
|
||||
payload.webhooks.forEach((webhook) => {
|
||||
Webhook.upsert(webhook);
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
case ActionTypes.CORE_INITIALIZE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue