fix: protocol sync

This commit is contained in:
Julian Krauser 2025-06-06 08:59:15 +02:00
parent 87cb4252ec
commit d1ff313754
3 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ export const useProtocolAgendaStore = defineStore("protocolAgenda", {
await http await http
.patch(`/admin/protocol/${protocolId}/synchronize/agenda`, { .patch(`/admin/protocol/${protocolId}/synchronize/agenda`, {
agenda: differenceWith(this.agenda, this.origin, isEqual), agenda: this.agenda,
}) })
.then((res) => { .then((res) => {
this.syncingProtocolAgenda = "synced"; this.syncingProtocolAgenda = "synced";

View file

@ -72,7 +72,7 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", {
await http await http
.patch(`/admin/protocol/${protocolId}/synchronize/decisions`, { .patch(`/admin/protocol/${protocolId}/synchronize/decisions`, {
decisions: differenceWith(this.decision, this.origin, isEqual), decisions: this.decision,
}) })
.then((res) => { .then((res) => {
this.syncingProtocolDecision = "synced"; this.syncingProtocolDecision = "synced";

View file

@ -75,7 +75,7 @@ export const useProtocolVotingStore = defineStore("protocolVoting", {
await http await http
.patch(`/admin/protocol/${protocolId}/synchronize/votings`, { .patch(`/admin/protocol/${protocolId}/synchronize/votings`, {
votings: differenceWith(this.voting, this.origin, isEqual), votings: this.voting,
}) })
.then((res) => { .then((res) => {
this.syncingProtocolVoting = "synced"; this.syncingProtocolVoting = "synced";