hotfix: insert or update with postgres
This commit is contained in:
parent
1f5ddc05d2
commit
eb4db01b27
11 changed files with 43 additions and 32 deletions
|
@ -317,7 +317,7 @@ export async function synchronizeProtocolAgendaById(req: Request, res: Response)
|
|||
|
||||
let syncAgenda: Array<SynchronizeProtocolAgendaCommand> = agenda.map(
|
||||
(a: ProtocolAgendaViewModel): SynchronizeProtocolAgendaCommand => ({
|
||||
id: a.id ?? null,
|
||||
id: a.id,
|
||||
topic: a.topic,
|
||||
context: a.context,
|
||||
sort: a.sort,
|
||||
|
@ -341,7 +341,7 @@ export async function synchronizeProtocolDecisonsById(req: Request, res: Respons
|
|||
|
||||
let syncDecision: Array<SynchronizeProtocolDecisionCommand> = decisions.map(
|
||||
(d: ProtocolDecisionViewModel): SynchronizeProtocolDecisionCommand => ({
|
||||
id: d.id ?? null,
|
||||
id: d.id,
|
||||
topic: d.topic,
|
||||
context: d.context,
|
||||
sort: d.sort,
|
||||
|
@ -365,7 +365,7 @@ export async function synchronizeProtocolVotingsById(req: Request, res: Response
|
|||
|
||||
let syncVoting: Array<SynchronizeProtocolVotingCommand> = votings.map(
|
||||
(v: ProtocolVotingViewModel): SynchronizeProtocolVotingCommand => ({
|
||||
id: v.id ?? null,
|
||||
id: v.id,
|
||||
topic: v.topic,
|
||||
context: v.context,
|
||||
favour: v.favour,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue