diff --git a/app/Http/Controllers/HumanVerification.php b/app/Http/Controllers/HumanVerification.php index def5420560a44971a1a5d12db0a0ab9f58ff465a..cd46d78e016ec18315e7bb844a8b74119f9f2da1 100644 --- a/app/Http/Controllers/HumanVerification.php +++ b/app/Http/Controllers/HumanVerification.php @@ -98,12 +98,7 @@ class HumanVerification extends Controller } if ($user->whitelist === 1) { - if ( - DB::table('humanverification')->where('uid', $uid)->update(['unusedResultPages' => 0]) - === 1 - ) { - DB::table('usedurls')->where('uid', $uid)->delete(); - } + DB::table('humanverification')->where('uid', $uid)->update(['unusedResultPages' => 0]); } else { DB::table('humanverification')->where('uid', $uid)->where('updated_at', '<', Carbon::NOW()->subSeconds(2))->delete();