fix gitlab tests
This commit is contained in:
@@ -16,8 +16,8 @@ class IpBanQueryService
|
||||
$query->where('blocked_until', '>', $this->utcNow());
|
||||
}
|
||||
|
||||
if (! empty($filters['search'])) {
|
||||
$term = '%'.trim((string) $filters['search']).'%';
|
||||
if (!empty($filters['search'])) {
|
||||
$term = '%' . trim((string) $filters['search']) . '%';
|
||||
$query->where('ip_address', 'like', $term);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ class IpBanQueryService
|
||||
if (function_exists('utc_now')) {
|
||||
return (string) utc_now();
|
||||
}
|
||||
|
||||
return now('UTC')->toDateTimeString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user