This commit is contained in:
2021-05-05 08:39:27 +02:00
parent 00f6020dbc
commit 4f2cb208fd
8 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -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"]);