Commit cc9d0051 authored by Dominik Hebeler's avatar Dominik Hebeler

Fixed a bug. Table usedurls doesn't exist anymore

parent 0ad1db5a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment