fix: vcs-server list is_active 컬럼 ambiguous 에러 수정

This commit is contained in:
2026-01-12 00:13:02 +09:00
parent ee736fb7cc
commit 6f344fa99f

View File

@@ -8,7 +8,7 @@ export default defineEventHandler(async (event) => {
const params = getQuery(event) const params = getQuery(event)
const includeInactive = params.includeInactive === 'true' const includeInactive = params.includeInactive === 'true'
const conditions = includeInactive ? [] : ['is_active = true'] const conditions = includeInactive ? [] : ['s.is_active = true']
const whereClause = conditions.length > 0 ? `WHERE ${conditions.join(' AND ')}` : '' const whereClause = conditions.length > 0 ? `WHERE ${conditions.join(' AND ')}` : ''
const servers = await query(` const servers = await query(`