diff --git a/BeReadyBackend/Endpoints/Groups/PatchVoteEndpoint.cs b/BeReadyBackend/Endpoints/Groups/PatchVoteEndpoint.cs index 104f490..9a6942f 100644 --- a/BeReadyBackend/Endpoints/Groups/PatchVoteEndpoint.cs +++ b/BeReadyBackend/Endpoints/Groups/PatchVoteEndpoint.cs @@ -36,7 +36,7 @@ public class PatchVoteEndpoint(UserGroupsRepository userGroupsRepository, UserSe 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); return;