Skip to content

Commit

Permalink
eidt admin group minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM committed May 3, 2024
1 parent 22e982c commit da25704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function store(StoreAdminRequest $request)

$adminFlag = new SaAdminsFlags();
$adminFlag->admin_id = $saAdmin->id;
$adminFlag->flag = SaGroups::find($groupId)->value('name');
$adminFlag->flag = SaGroups::where('id', $groupId)->value('name');
$adminFlag->save();

if (empty(SaGroupsServers::where('group_id', $groupId)->where('server_id', $server_id)->first()))
Expand Down Expand Up @@ -249,7 +249,7 @@ public function updateAdmin(Request $request, $player_steam)

$adminFlag = new SaAdminsFlags();
$adminFlag->admin_id = $saAdmin->id;
$adminFlag->flag = SaGroups::find($groupId)->value('name');
$adminFlag->flag = SaGroups::where('id', $groupId)->value('name');
$adminFlag->save();

if (empty(SaGroupsServers::where('group_id', $groupId)->where('server_id', $server)->first()))
Expand Down Expand Up @@ -415,7 +415,7 @@ public function updateAdminGroup(Request $request, $player_steam)

$adminFlag = new SaAdminsFlags();
$adminFlag->admin_id = $saAdmin->id;
$adminFlag->flag = SaGroups::find($groupId)->value('name');
$adminFlag->flag = SaGroups::where('id', $groupId)->value('name');
$adminFlag->save();

if (empty(SaGroupsServers::where('group_id', $groupId)->where('server_id', $validated['server_id'])->first()))
Expand Down

0 comments on commit da25704

Please sign in to comment.