Commit 9526f2fd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed a bug. Table usedurls doesn't exist anymore

parent 61a047e3
...@@ -98,12 +98,7 @@ class HumanVerification extends Controller ...@@ -98,12 +98,7 @@ class HumanVerification extends Controller
} }
if ($user->whitelist === 1) { if ($user->whitelist === 1) {
if ( DB::table('humanverification')->where('uid', $uid)->update(['unusedResultPages' => 0]);
DB::table('humanverification')->where('uid', $uid)->update(['unusedResultPages' => 0])
=== 1
) {
DB::table('usedurls')->where('uid', $uid)->delete();
}
} else { } else {
DB::table('humanverification')->where('uid', $uid)->where('updated_at', '<', Carbon::NOW()->subSeconds(2))->delete(); DB::table('humanverification')->where('uid', $uid)->where('updated_at', '<', Carbon::NOW()->subSeconds(2))->delete();
......
Supports Markdown
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