From da219eb5f4ecb7c4e5596a4b8281af5ad40d2428 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 18 Oct 2024 14:20:48 +0200 Subject: [PATCH] rename --- src/controller/admin/protocolController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controller/admin/protocolController.ts b/src/controller/admin/protocolController.ts index 3316ec8..4a4a61a 100644 --- a/src/controller/admin/protocolController.ts +++ b/src/controller/admin/protocolController.ts @@ -253,9 +253,9 @@ export async function synchronizeProtocolDecisonsById(req: Request, res: Respons */ export async function synchronizeProtocolVotingsById(req: Request, res: Response): Promise { let protocolId = parseInt(req.params.protocolId); - let decisions = req.body.decisions as Array; + let votings = req.body.votings as Array; - let syncDecision: Array = decisions.map( + let syncVoting: Array = votings.map( (d: ProtocolVotingViewModel): SynchronizeProtocolVotingCommand => ({ id: d.id ?? null, topic: d.topic, @@ -266,7 +266,7 @@ export async function synchronizeProtocolVotingsById(req: Request, res: Response protocolId, }) ); - await ProtocolVotingCommandHandler.sync(syncDecision); + await ProtocolVotingCommandHandler.sync(syncVoting); res.sendStatus(204); }