From fa6705814882b79e1b3a40b29494a971cd67b048 Mon Sep 17 00:00:00 2001 From: Marc Velmer Date: Wed, 24 Jan 2024 17:21:36 +0100 Subject: [PATCH] Fixed approval election check vote --- src/types/election/published.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/election/published.ts b/src/types/election/published.ts index 88c91071..081b4889 100644 --- a/src/types/election/published.ts +++ b/src/types/election/published.ts @@ -5,6 +5,7 @@ import { PublishedCensus } from '../census'; import { Vote } from '../vote'; import { MultiChoiceElection } from './multichoice'; import { BudgetElection } from './budget'; +import { ApprovalElection } from './approval'; export enum ElectionStatus { PROCESS_UNKNOWN = 'PROCESS_UNKNOWN', @@ -114,7 +115,7 @@ export class PublishedElection extends Election { case ElectionResultsTypeNames.MULTIPLE_CHOICE: return MultiChoiceElection.checkVote(vote, this.voteType); case ElectionResultsTypeNames.APPROVAL: - return MultiChoiceElection.checkVote(vote, this.voteType); + return ApprovalElection.checkVote(vote, this.voteType); case ElectionResultsTypeNames.BUDGET: return BudgetElection.checkVote(vote, this.resultsType, this.voteType); case ElectionResultsTypeNames.SINGLE_CHOICE_MULTIQUESTION: