fix: [storage] RecordStorageUsage 명령어 tenants 테이블 컬럼명 오류 수정

- Tenant::where('status', 'active') → Tenant::active() 스코프 사용
- tenants 테이블에 status 컬럼 없음, tenant_st_code 사용
This commit is contained in:
김보곤
2026-03-05 09:16:05 +09:00
parent 5ce2d2fcbf
commit 521229adcf

View File

@@ -29,7 +29,7 @@ class RecordStorageUsage extends Command
*/ */
public function handle(): int public function handle(): int
{ {
$tenants = Tenant::where('status', 'active')->get(); $tenants = Tenant::active()->get();
$recorded = 0; $recorded = 0;
foreach ($tenants as $tenant) { foreach ($tenants as $tenant) {