fix: protocol sync
This commit is contained in:
parent
87cb4252ec
commit
d1ff313754
3 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue