fix: Admin 사용자 목록 API is_active 필터 SQL 에러 수정
- users와 user_tenants 테이블 JOIN 시 is_active 컬럼 ambiguous 에러 해결 - is_active → user_tenants.is_active로 테이블 명시
This commit is contained in:
@@ -45,7 +45,7 @@ public static function getTenants(array $params = [])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($active !== null && $active !== '') {
|
if ($active !== null && $active !== '') {
|
||||||
$q->where('is_active', (int) $active);
|
$q->where('user_tenants.is_active', (int) $active);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 조인 정렬용
|
// 조인 정렬용
|
||||||
|
|||||||
Reference in New Issue
Block a user