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

- 시공권한 계정으로 로그인 시 builderId가 없을 경우 목록에 아무것도 안뜨도록 수정
This commit is contained in:
Dayoung 2025-06-27 11:01:33 +09:00
parent 66800aaa81
commit caa9927f9e

View File

@ -134,7 +134,11 @@ export class SurveySalesService {
break
case 'Builder':
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
case 'T01':
where.OR = [{ NOT: { SRL_NO: { startsWith: '一時保存' } } }, { STORE_ID: { equals: this.session?.storeId } }]