fixed error with logic to vote at the end of challenge

This commit is contained in:
2026-03-23 23:41:10 +01:00
parent c2f50acf00
commit ae8a33b7b6
@@ -36,7 +36,7 @@ public class PatchVoteEndpoint(UserGroupsRepository userGroupsRepository, UserSe
return; return;
} }
if (member.Group!.StartedVote is not null && member.Group.StartedVote.Value.AddHours(member.Group.VoteDuration) > DateTime.Now) if (member.Group!.StartedVote is not null && member.Group.StartedVote.Value.AddHours(member.Group.VoteDuration) < DateTime.Now)
{ {
await Send.StringAsync("Le vote est terminé", 400, cancellation: ct); await Send.StringAsync("Le vote est terminé", 400, cancellation: ct);
return; return;