diff --git a/src/app/api/survey-sales/service.ts b/src/app/api/survey-sales/service.ts index a68946a..4988d51 100644 --- a/src/app/api/survey-sales/service.ts +++ b/src/app/api/survey-sales/service.ts @@ -313,7 +313,7 @@ export class SurveySalesService { */ async updateSurvey(id: number, survey: SurveyRegistRequest, isTemporary: boolean, storeId: string, role: string) { const { detailInfo, ...basicInfo } = survey - const newSrlNo = isTemporary ? survey.srlNo ?? '一時保存' : await this.getNewSrlNo(storeId, role) + const newSrlNo = isTemporary ? '一時保存' : survey.srlNo === '一時保存' ? await this.getNewSrlNo(storeId, role) : survey.srlNo // @ts-ignore return (await prisma.SD_SURVEY_SALES_BASIC_INFO.update({