diff --git a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs index d14aed2..95b730b 100644 --- a/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs +++ b/src/Application/TakeoutSaaS.Application/App/Tenants/Handlers/GetTenantPackageTenantsQueryHandler.cs @@ -88,7 +88,7 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx from public.tenants t where t."DeletedAt" is null and ( - @keyword is null + @keyword::text is null or t."Name" ilike ('%' || @keyword::text || '%') or t."Code" ilike ('%' || @keyword::text || '%') or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%') @@ -134,7 +134,7 @@ public sealed class GetTenantPackageTenantsQueryHandler(IDapperExecutor dapperEx ) s on true where t."DeletedAt" is null and ( - @keyword is null + @keyword::text is null or t."Name" ilike ('%' || @keyword::text || '%') or t."Code" ilike ('%' || @keyword::text || '%') or coalesce(t."ContactName", '') ilike ('%' || @keyword::text || '%')