From aacba4f4dd7cf4d23f1a4aac63d93672e87cdbfd Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 17 Mar 2026 11:33:58 +0100 Subject: [PATCH] Fixed errors --- BeReadyBackend/Endpoints/Groups/PatchGroupUserProofEndpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeReadyBackend/Endpoints/Groups/PatchGroupUserProofEndpoint.cs b/BeReadyBackend/Endpoints/Groups/PatchGroupUserProofEndpoint.cs index 8a05996..886be20 100644 --- a/BeReadyBackend/Endpoints/Groups/PatchGroupUserProofEndpoint.cs +++ b/BeReadyBackend/Endpoints/Groups/PatchGroupUserProofEndpoint.cs @@ -38,7 +38,7 @@ public class PatchGroupUserProofEndpoint(UserGroupsRepository userGroupsReposito return; } - if (member.Group!.IsFinished) + if (member.Group != null && member.Group.IsFinished) { await Send.StringAsync("Ce défi est terminé", 400, cancellation: ct); return;