From 1f5ed5ba225482fe7d4aab65fa34d0bc8605dc92 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 16 Jun 2023 08:37:31 +0200 Subject: [PATCH] Use getModels (testing CI) --- src/Commands/CreateRLSPoliciesForTenantTables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index af41c351..cdcae3e4 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -20,7 +20,7 @@ class CreateRLSPoliciesForTenantTables extends Command public function handle(): int { DB::transaction(function () { - tenancy()->getTenantModels()->each(fn (Model $model) => $this->useRlsOnModel($model)); + tenancy()->getModels()->each(fn (Model $model) => $this->useRlsOnModel($model)); }); return Command::SUCCESS;