fix max participant reached

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-11-20 11:23:21 +01:00
parent 2c606d4fe7
commit fd65cfdc1c
+1 -1
View File
@@ -75,7 +75,7 @@ class TasksController extends Controller
$task = Task::find($request["task_id"]);
if($task->max_participants = $task->users()->count()) {
if($task->max_participants === $task->users()->count()) {
return response()->json(["message" => "Max participants reached"], 403);
}