Skip to content
Snippets Groups Projects
Commit cc9d0051 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed a bug. Table usedurls doesn't exist anymore

parent 0ad1db5a
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment