back end update
This commit is contained in:
@@ -6,7 +6,7 @@ use Backend\Models\Registration;
|
||||
|
||||
if(isLogin()){
|
||||
if(isset($_POST['updateReg'])){
|
||||
if($reg = Registration::where("group_id", $_POST["groupId"])->where("game_jam_id", $_POST["gameJamId"])->first()){
|
||||
if($reg = Registration::find($_POST["registrationId"])->where("group_id", groupViaToken($_SESSION['token'])->id)->first()){
|
||||
$reg->group_amount = $_POST["groupAmount"];
|
||||
if($reg->save()){
|
||||
http_response_code(200);
|
||||
|
||||
Reference in New Issue
Block a user