From 521229adcf4ef35b2ff868a680ddd8db0c367e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 5 Mar 2026 09:16:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[storage]=20RecordStorageUsage=20?= =?UTF-8?q?=EB=AA=85=EB=A0=B9=EC=96=B4=20tenants=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=BB=AC=EB=9F=BC=EB=AA=85=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tenant::where('status', 'active') → Tenant::active() 스코프 사용 - tenants 테이블에 status 컬럼 없음, tenant_st_code 사용 --- app/Console/Commands/RecordStorageUsage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/RecordStorageUsage.php b/app/Console/Commands/RecordStorageUsage.php index 1aaf2fc..c77f1eb 100644 --- a/app/Console/Commands/RecordStorageUsage.php +++ b/app/Console/Commands/RecordStorageUsage.php @@ -29,7 +29,7 @@ class RecordStorageUsage extends Command */ public function handle(): int { - $tenants = Tenant::where('status', 'active')->get(); + $tenants = Tenant::active()->get(); $recorded = 0; foreach ($tenants as $tenant) {