fix: [storage] RecordStorageUsage 명령어 tenants 테이블 컬럼명 오류 수정
- Tenant::where('status', 'active') → Tenant::active() 스코프 사용
- tenants 테이블에 status 컬럼 없음, tenant_st_code 사용
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user