fix: 문의 API URL 수정 및 ApiError 객체 파라미터 수정
- 문의 API 에러 반환 객체 타입 오류 발생으로 방어 처리 추가
This commit is contained in:
parent
ed45f3dfa5
commit
e45b147b8c
@ -22,8 +22,8 @@ NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080
|
||||
# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com
|
||||
|
||||
#1:1문의 api
|
||||
# NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
||||
NEXT_PUBLIC_INQUIRY_API_URL=http://1.248.227.176:8120
|
||||
NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
||||
# NEXT_PUBLIC_INQUIRY_API_URL=http://1.248.227.176:8120
|
||||
|
||||
EMAIL_TITLE_PREFIX=(System Test)
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@ NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120
|
||||
# NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
||||
NEXT_PUBLIC_INQUIRY_API_URL=http://1.248.227.176:8120
|
||||
|
||||
EMAIL_TITLE_PREFIX=
|
||||
|
||||
#QPARTNER 로그인 api
|
||||
DB_HOST=202.218.61.226
|
||||
DB_USER=readonly
|
||||
|
||||
@ -16,9 +16,7 @@ NEXT_PUBLIC_API_URL=https://hanasysfield.jp
|
||||
NEXT_PUBLIC_QSP_API_URL=https://jp.qsalesplatform.com
|
||||
|
||||
#1:1문의 api
|
||||
NEXT_PUBLIC_INQUIRY_API_URL=http://172.23.4.129:8110
|
||||
|
||||
EMAIL_TITLE_PREFIX=
|
||||
NEXT_PUBLIC_INQUIRY_API_URL=https://jp.qsalesplatform.com
|
||||
|
||||
#QPARTNER 로그인 api
|
||||
DB_HOST=202.218.61.226
|
||||
|
||||
@ -16,7 +16,7 @@ export class QnaService {
|
||||
*/
|
||||
private handleRouteError(error: any): ApiError {
|
||||
console.error('❌ API ROUTE ERROR : ', error)
|
||||
return new ApiError(error.response.status, error.response.data.result.message ?? ERROR_MESSAGE.FETCH_ERROR)
|
||||
return new ApiError(error.response.status ?? HttpStatusCode.InternalServerError, error.response.data.result.message ?? ERROR_MESSAGE.FETCH_ERROR)
|
||||
}
|
||||
/**
|
||||
* @description 비동기 함수 try-catch 처리 함수
|
||||
|
||||
@ -376,12 +376,15 @@ export class SurveySalesService {
|
||||
|
||||
/**
|
||||
* @description T01 권한 체크
|
||||
* - 임시저장 매물을 제외한 전 매물 조회 가능
|
||||
* - 본인이 작성한 임시저장 매물, 임시저장 매물을 제외한 전 매물 조회 가능
|
||||
*
|
||||
* @param {any} survey 조사 매물 데이터
|
||||
* @returns {boolean} 해당 매물의 조회 권한 여부 (true: 권한 있음, false: 권한 없음)
|
||||
*/
|
||||
private checkT01Role(survey: any): boolean {
|
||||
if (survey.REPRESENTATIVE_ID === this.session?.userId) {
|
||||
return true
|
||||
}
|
||||
return survey.SRL_NO !== '一時保存'
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user