From d1ff313754d61b15b09e099c457bd14a3ad23c87 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 6 Jun 2025 08:59:15 +0200 Subject: [PATCH] fix: protocol sync --- src/stores/admin/club/protocol/protocolAgenda.ts | 2 +- src/stores/admin/club/protocol/protocolDecision.ts | 2 +- src/stores/admin/club/protocol/protocolVoting.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/admin/club/protocol/protocolAgenda.ts b/src/stores/admin/club/protocol/protocolAgenda.ts index 1341b84..d9c7a35 100644 --- a/src/stores/admin/club/protocol/protocolAgenda.ts +++ b/src/stores/admin/club/protocol/protocolAgenda.ts @@ -71,7 +71,7 @@ export const useProtocolAgendaStore = defineStore("protocolAgenda", { await http .patch(`/admin/protocol/${protocolId}/synchronize/agenda`, { - agenda: differenceWith(this.agenda, this.origin, isEqual), + agenda: this.agenda, }) .then((res) => { this.syncingProtocolAgenda = "synced"; diff --git a/src/stores/admin/club/protocol/protocolDecision.ts b/src/stores/admin/club/protocol/protocolDecision.ts index 33b4da9..93a9f8c 100644 --- a/src/stores/admin/club/protocol/protocolDecision.ts +++ b/src/stores/admin/club/protocol/protocolDecision.ts @@ -72,7 +72,7 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", { await http .patch(`/admin/protocol/${protocolId}/synchronize/decisions`, { - decisions: differenceWith(this.decision, this.origin, isEqual), + decisions: this.decision, }) .then((res) => { this.syncingProtocolDecision = "synced"; diff --git a/src/stores/admin/club/protocol/protocolVoting.ts b/src/stores/admin/club/protocol/protocolVoting.ts index 6b75c04..7de5a58 100644 --- a/src/stores/admin/club/protocol/protocolVoting.ts +++ b/src/stores/admin/club/protocol/protocolVoting.ts @@ -75,7 +75,7 @@ export const useProtocolVotingStore = defineStore("protocolVoting", { await http .patch(`/admin/protocol/${protocolId}/synchronize/votings`, { - votings: differenceWith(this.voting, this.origin, isEqual), + votings: this.voting, }) .then((res) => { this.syncingProtocolVoting = "synced";