Skip to content

Commit 383751d

Browse files
authored
Merge pull request #121 from GeneralMagicio/fix-you-voted-badge-when-poll-is-ended
fix you voted badge when poll is ended
2 parents c1c999a + 488f346 commit 383751d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/user/user.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class UserService {
274274
},
275275
select: { endDate: true, options: true },
276276
})
277-
if (!poll || (poll.endDate && poll.endDate < new Date())) {
277+
if (!poll) {
278278
throw new PollNotFoundException()
279279
}
280280
const vote = await this.databaseService.vote.findFirst({

0 commit comments

Comments
 (0)