fix: 조사매물 목록 조회 방어처리 추가 #79

Merged
keyy1315 merged 1 commits from hotfix into dev 2025-06-27 11:08:26 +09:00

View File

@ -134,7 +134,11 @@ export class SurveySalesService {
break break
case 'Builder': case 'Builder':
case 'Partner': case 'Partner':
where.AND.push({ CONSTRUCTION_POINT_ID: { equals: this.session?.builderId } }) if (this.session?.builderId) {
where.AND.push({ CONSTRUCTION_POINT_ID: { equals: this.session?.builderId } })
} else {
where.AND.push({ ID: { equals: -1 } })
}
break break
case 'T01': case 'T01':
where.OR = [{ NOT: { SRL_NO: { startsWith: '一時保存' } } }, { STORE_ID: { equals: this.session?.storeId } }] where.OR = [{ NOT: { SRL_NO: { startsWith: '一時保存' } } }, { STORE_ID: { equals: this.session?.storeId } }]