Skip to content

Commit 55dfb30

Browse files
Fix/revert bubble extra user (#1105)
2 parents b7067a2 + f2fa894 commit 55dfb30

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

apps/queue-manager/src/consumers/send-bubble-data.consumer.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,17 @@ export class SendBubbleDataConsumer extends BaseConsumer {
164164
Object.keys(extra).forEach((extraObjKey) => {
165165
defaultValueObj[`extra.${extraObjKey}`] = extra[extraObjKey];
166166
});
167-
if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.uploadId}}')) {
168-
defaultValueObj['extra.uploadId'] = _uploadId;
169-
}
170-
171-
if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.userId}}')) {
172-
defaultValueObj['extra.userId'] = await this.uploadRepository.getUserIdFromUploadId(_uploadId);
173-
}
167+
/*
168+
* if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.uploadId}}')) {
169+
* defaultValueObj['extra.uploadId'] = _uploadId;
170+
* }
171+
*/
172+
173+
/*
174+
* if (uploadata.customRecordFormat && uploadata.customRecordFormat.includes('{{extra.userId}}')) {
175+
* defaultValueObj['extra.userId'] = await this.uploadRepository.getUserIdFromUploadId(_uploadId);
176+
* }
177+
*/
174178
} catch (error) {}
175179
}
176180

apps/widget/src/hooks/Phase1/usePhase1.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ export function usePhase1({ goNext, texts, onManuallyEnterData }: IUsePhase1Prop
7878
resetField('file');
7979
setError('file', {
8080
type: 'file',
81-
message: maxRecords
82-
? `${texts.PHASE3.MAX_RECORD_LIMIT_ERROR} ${maxRecords}`
83-
: texts.PHASE3.MAX_RECORD_LIMIT_ERROR ?? error.message,
81+
message: error.message,
8482
});
8583
},
8684
}
@@ -91,7 +89,7 @@ export function usePhase1({ goNext, texts, onManuallyEnterData }: IUsePhase1Prop
9189
IErrorObject,
9290
{ file: File }
9391
// eslint-disable-next-line prettier/prettier
94-
>(['getExcelSheetNames'], (excelSheetFile) => api.getExcelSheetNames(excelSheetFile), {
92+
>(['getExcelSheetNames'], (excelSheetFile) => api.getExcelSheetNames(excelSheetFile), {
9593
onSuccess(sheetNames) {
9694
if (sheetNames.length <= 1) {
9795
setValue('selectedSheetName', sheetNames[0]);

0 commit comments

Comments
 (0)