mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +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:
|
case ActionTypes.SOCKET_RECONNECT_HANDLE:
|
||||||
Webhook.all().delete();
|
Webhook.all().delete();
|
||||||
|
|
||||||
payload.webhooks.forEach((webhook) => {
|
if (payload.webhooks) {
|
||||||
Webhook.upsert(webhook);
|
payload.webhooks.forEach((webhook) => {
|
||||||
});
|
Webhook.upsert(webhook);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case ActionTypes.CORE_INITIALIZE:
|
case ActionTypes.CORE_INITIALIZE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue