From d930c410dc83cbc65bff4110c042c33476b654d4 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 20 Jan 2022 17:51:40 +1100 Subject: [PATCH] Remove caching on Zone, fix cockroach cannot do like on integers --- app/Http/Controllers/HomeController.php | 2 +- app/Models/Zone.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 296515e..f440d0f 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -103,7 +103,7 @@ class HomeController extends Controller ->when($host_id,function($q,$host_id) { return $q->where('region_id',$host_id); }) ->when($host_id,function($q,$host_id) { return $q->orWhere('host_id',$host_id); }); }) - ->when($node_id,function($q,$node_id) { return $q->where('node_id','ilike','%'.$node_id.'%'); }); + ->when($node_id,function($q,$node_id) { return $q->where('node_id',$node_id); }); }) ->orWhere('systems.name','ilike','%'.$request->query('term').'%') ->orWhere('systems.sysop','ilike','%'.$request->query('term').'%') diff --git a/app/Models/Zone.php b/app/Models/Zone.php index 7809630..13ca93b 100644 --- a/app/Models/Zone.php +++ b/app/Models/Zone.php @@ -8,7 +8,7 @@ use App\Traits\{QueryCacheableConfig,ScopeActive}; class Zone extends Model { - use ScopeActive,QueryCacheableConfig; + use ScopeActive; /* SCOPES */