Remove caching on Zone, fix cockroach cannot do like on integers

This commit is contained in:
Deon George 2022-01-20 17:51:40 +11:00
parent c7e6bb2575
commit d930c410dc
2 changed files with 2 additions and 2 deletions

View File

@ -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').'%')

View File

@ -8,7 +8,7 @@ use App\Traits\{QueryCacheableConfig,ScopeActive};
class Zone extends Model
{
use ScopeActive,QueryCacheableConfig;
use ScopeActive;
/* SCOPES */