From 019835e3fd7b1b96084d97b41126fcc89e80d7b5 Mon Sep 17 00:00:00 2001 From: hskwon Date: Tue, 16 Dec 2025 21:57:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Admin=20=EC=82=AC=EC=9A=A9=EC=9E=90=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20API=20is=5Factive=20=ED=95=84=ED=84=B0=20S?= =?UTF-8?q?QL=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - users와 user_tenants 테이블 JOIN 시 is_active 컬럼 ambiguous 에러 해결 - is_active → user_tenants.is_active로 테이블 명시 --- app/Services/AdminService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/AdminService.php b/app/Services/AdminService.php index 7289d9f..cb1bc4a 100644 --- a/app/Services/AdminService.php +++ b/app/Services/AdminService.php @@ -45,7 +45,7 @@ public static function getTenants(array $params = []) } if ($active !== null && $active !== '') { - $q->where('is_active', (int) $active); + $q->where('user_tenants.is_active', (int) $active); } // 조인 정렬용