Skip to content

Commit

Permalink
fix column name
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcrr committed Jul 22, 2023
1 parent 598dbd5 commit fc18e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/DeleteAccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public function __invoke (Request $request)
}

$adminVerificationLogs = AdminVerificationLog::where([
'user_id' => $userId,
'admin_id' => $userId,
'photo_id' => $photo->id
])->count();

if ($adminVerificationLogs > 0)
{
AdminVerificationLog::where([
'user_id' => $userId,
'admin_id' => $userId,
'photo_id' => $photo->id
])->delete();
}
Expand Down

0 comments on commit fc18e79

Please sign in to comment.