enhance: enable deletion of protocol content

This commit is contained in:
Julian Krauser 2025-05-21 10:33:05 +02:00
parent 1a83e4939d
commit 496a60f2df
4 changed files with 52 additions and 9 deletions

View file

@ -324,7 +324,7 @@ export async function synchronizeProtocolAgendaById(req: Request, res: Response)
protocolId,
})
);
await ProtocolAgendaCommandHandler.sync(syncAgenda);
await ProtocolAgendaCommandHandler.sync(protocolId, syncAgenda);
res.sendStatus(204);
}
@ -348,7 +348,7 @@ export async function synchronizeProtocolDecisonsById(req: Request, res: Respons
protocolId,
})
);
await ProtocolDecisionCommandHandler.sync(syncDecision);
await ProtocolDecisionCommandHandler.sync(protocolId, syncDecision);
res.sendStatus(204);
}
@ -375,7 +375,7 @@ export async function synchronizeProtocolVotingsById(req: Request, res: Response
protocolId,
})
);
await ProtocolVotingCommandHandler.sync(syncVoting);
await ProtocolVotingCommandHandler.sync(protocolId, syncVoting);
res.sendStatus(204);
}