From cfb6b3edc2ed65d5c1aa0a30b5fe2f155674846c Mon Sep 17 00:00:00 2001 From: kent Date: Sat, 27 Dec 2025 23:14:21 +0900 Subject: [PATCH] =?UTF-8?q?fix(menu):=20Tenant=20=EB=AA=A8=EB=8D=B8?= =?UTF-8?q?=EC=9D=98=20active()=20=EC=8A=A4=EC=BD=94=ED=94=84=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tenant::where('is_active', true) → Tenant::active() - tenants 테이블에 is_active 컬럼이 없어 발생한 SQL 오류 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/Services/MenuService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/MenuService.php b/app/Services/MenuService.php index a1336327..0561b5ff 100644 --- a/app/Services/MenuService.php +++ b/app/Services/MenuService.php @@ -1256,7 +1256,7 @@ public function createMenuForBoard(array $boardData): GlobalMenu|Menu|null } // 2. 모든 테넌트의 Menu에 추가 - $tenants = Tenant::where('is_active', true)->get(); + $tenants = Tenant::active()->get(); foreach ($tenants as $tenant) { $menuParentId = $this->findParentMenuForBoard(false, $tenant->id); $menuExists = Menu::where('url', $url)->where('tenant_id', $tenant->id)->exists(); @@ -1423,7 +1423,7 @@ public function restoreMenuForBoard(string $boardCode, string $boardName, bool $ } // === 모든 활성 테넌트의 Menu 복원/생성 === - $tenants = Tenant::where('is_active', true)->get(); + $tenants = Tenant::active()->get(); foreach ($tenants as $tenant) { $menuTrashed = Menu::onlyTrashed()->where('url', $url)->where('tenant_id', $tenant->id)->first(); if ($menuTrashed) {