test
This commit is contained in:
@@ -23,7 +23,7 @@ if (isLogin()) {
|
||||
echo json_encode(["message" => "gameJam not found"]);
|
||||
exit();
|
||||
}
|
||||
$registration = Registration::where('game_jam_id', $gameJam->id)->where("group_id", $group->id)->frist();
|
||||
$registration = Registration::where('game_jam_id', $gameJam->id)->where("group_id", $group->id)->first();
|
||||
if ($registration === null) {
|
||||
http_response_code(401);
|
||||
echo json_encode(["message" => "group not registered for that game jam"]);
|
||||
|
||||
Reference in New Issue
Block a user