fix max participant reached
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user