fix(mng): Role 모델 withTrashed() 호출 제거

- Role 모델에 SoftDeletes 트레이트가 없어 에러 발생
- 테넌트 아카이브 시 역할 조회 로직 수정

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-01 22:43:39 +09:00
parent 5e1d4380d9
commit 273ac6caf6

View File

@@ -180,8 +180,8 @@ public function archiveTenantWithRelations(Tenant $tenant): string
]);
}
// 5. 역할 아카이브
$roles = $tenant->roles()->withTrashed()->get();
// 5. 역할 아카이브 (Role 모델에는 SoftDeletes 없음)
$roles = $tenant->roles()->get();
if ($roles->isNotEmpty()) {
ArchivedRecordRelation::create([
'archived_record_id' => $archivedRecord->id,