From 1e59c2f9d17510bc8d240531d3811184896c340a Mon Sep 17 00:00:00 2001 From: Volodymyr Horin Date: Wed, 1 Dec 2021 18:16:42 +0200 Subject: [PATCH] fix(proposal vote migration): fixed proposal vote status migration --- libs/migrations/src/scripts/proposal-vote.migration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/migrations/src/scripts/proposal-vote.migration.ts b/libs/migrations/src/scripts/proposal-vote.migration.ts index fc33064b..b669e6e6 100644 --- a/libs/migrations/src/scripts/proposal-vote.migration.ts +++ b/libs/migrations/src/scripts/proposal-vote.migration.ts @@ -23,7 +23,7 @@ export class ProposalVoteMigration implements Migration { ...proposal, votePeriodEnd, voteStatus: - votePeriodEnd < currentTimestamp + votePeriodEnd > currentTimestamp ? ProposalVoteStatus.Active : ProposalVoteStatus.Expired, };