diff --git a/apps/queue-manager/src/consumers/send-bubble-data.consumer.ts b/apps/queue-manager/src/consumers/send-bubble-data.consumer.ts index a07bcbad3..e1d50d969 100644 --- a/apps/queue-manager/src/consumers/send-bubble-data.consumer.ts +++ b/apps/queue-manager/src/consumers/send-bubble-data.consumer.ts @@ -164,13 +164,17 @@ export class SendBubbleDataConsumer extends BaseConsumer { Object.keys(extra).forEach((extraObjKey) => { defaultValueObj[`extra.${extraObjKey}`] = extra[extraObjKey]; }); - if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.uploadId}}')) { - defaultValueObj['extra.uploadId'] = _uploadId; - } - - if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.userId}}')) { - defaultValueObj['extra.userId'] = await this.uploadRepository.getUserIdFromUploadId(_uploadId); - } + /* + * if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.uploadId}}')) { + * defaultValueObj['extra.uploadId'] = _uploadId; + * } + */ + + /* + * if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.userId}}')) { + * defaultValueObj['extra.userId'] = await this.uploadRepository.getUserIdFromUploadId(_uploadId); + * } + */ } catch (error) {} } diff --git a/apps/widget/src/hooks/Phase1/usePhase1.ts b/apps/widget/src/hooks/Phase1/usePhase1.ts index bf27471ce..311795962 100644 --- a/apps/widget/src/hooks/Phase1/usePhase1.ts +++ b/apps/widget/src/hooks/Phase1/usePhase1.ts @@ -78,9 +78,7 @@ export function usePhase1({ goNext, texts, onManuallyEnterData }: IUsePhase1Prop resetField('file'); setError('file', { type: 'file', - message: maxRecords - ? `${texts.PHASE3.MAX_RECORD_LIMIT_ERROR} ${maxRecords}` - : texts.PHASE3.MAX_RECORD_LIMIT_ERROR ?? error.message, + message: error.message, }); }, } @@ -91,7 +89,7 @@ export function usePhase1({ goNext, texts, onManuallyEnterData }: IUsePhase1Prop IErrorObject, { file: File } // eslint-disable-next-line prettier/prettier - >(['getExcelSheetNames'], (excelSheetFile) => api.getExcelSheetNames(excelSheetFile), { + >(['getExcelSheetNames'], (excelSheetFile) => api.getExcelSheetNames(excelSheetFile), { onSuccess(sheetNames) { if (sheetNames.length <= 1) { setValue('selectedSheetName', sheetNames[0]);