mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 09:15:01 +03:00
fix: Handle webhooks correctly during socket reconnection
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user