tango-app-api-report 3.0.12-dev → 3.0.13-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -214,7 +214,7 @@ export async function generateReport( req, res ) {
|
|
|
214
214
|
QueueUrl: `${appConfig.cloud.aws.sqs.url}${appConfig.cloud.aws.sqs.generateReport}`,
|
|
215
215
|
MessageBody: JSON.stringify( {
|
|
216
216
|
file_date: inputData.fileDate,
|
|
217
|
-
client_name:
|
|
217
|
+
client_name: req.report?.reportConfigs?.reportName,
|
|
218
218
|
client_id: Number( inputData.clientId ),
|
|
219
219
|
message: 'good to trigger',
|
|
220
220
|
} ),
|
|
@@ -228,9 +228,9 @@ export async function generateReport( req, res ) {
|
|
|
228
228
|
logType: 'report',
|
|
229
229
|
logSubType: 'generateReport',
|
|
230
230
|
logData: {
|
|
231
|
-
clientName:
|
|
231
|
+
clientName: req.report?.clientName,
|
|
232
232
|
fileDate: inputData.fileDate,
|
|
233
|
-
reportName:
|
|
233
|
+
reportName: req.report?.reportConfigs?.reportName,
|
|
234
234
|
clientId: inputData.ClientId,
|
|
235
235
|
sqsMessageId: sqsQueue.MessageId,
|
|
236
236
|
},
|
|
@@ -271,7 +271,7 @@ export async function uploadManualReport( req, res ) {
|
|
|
271
271
|
logger.info( { files: req.files } );
|
|
272
272
|
const uploadDataParams = {
|
|
273
273
|
Bucket: appConfig.cloud.aws.bucket.reportBucket,
|
|
274
|
-
Key: `reports/${inputData.fileDate}/${
|
|
274
|
+
Key: `reports/${inputData.fileDate}/${req.report?.reportConfigs?.reportName}/`,
|
|
275
275
|
fileName: inputData.fileName,
|
|
276
276
|
body: req.files.files.data,
|
|
277
277
|
};
|
|
@@ -292,7 +292,7 @@ export async function uploadManualReport( req, res ) {
|
|
|
292
292
|
logSubType: 'uploadReport',
|
|
293
293
|
logData: {
|
|
294
294
|
fileDate: inputData.fileDate,
|
|
295
|
-
reportName:
|
|
295
|
+
reportName: req.report?.reportConfigs?.reportName,
|
|
296
296
|
clientId: data.clientId,
|
|
297
297
|
},
|
|
298
298
|
};
|
|
@@ -374,7 +374,7 @@ export async function sendReport( req, res ) {
|
|
|
374
374
|
for ( const data of getReportList ) {
|
|
375
375
|
const fetchData = {
|
|
376
376
|
Bucket: appConfig.cloud.aws.bucket.reportBucket,
|
|
377
|
-
Key: `reports/${inputData.fileDate}/${
|
|
377
|
+
Key: `reports/${inputData.fileDate}/${req.report?.reportConfigs?.reportName}/${inputData.fileDate}_${data.fileName}.${data.fileType}`,
|
|
378
378
|
};
|
|
379
379
|
reportName.push( `${inputData.fileDate}_${data.fileName}` );
|
|
380
380
|
name.push( `${data.fileName}` );
|
|
@@ -423,7 +423,7 @@ export async function sendReport( req, res ) {
|
|
|
423
423
|
QueueUrl: `${appConfig.cloud.aws.sqs.url}${appConfig.cloud.aws.sqs.sendReport}`,
|
|
424
424
|
MessageBody: JSON.stringify( {
|
|
425
425
|
file_date: inputData.fileDate,
|
|
426
|
-
client_name:
|
|
426
|
+
client_name: req.report?.reportConfigs?.reportName,
|
|
427
427
|
client_id: Number( inputData.clientId ),
|
|
428
428
|
file_name: regionalKey,
|
|
429
429
|
report_name: name,
|
|
@@ -440,7 +440,7 @@ export async function sendReport( req, res ) {
|
|
|
440
440
|
logSubType: 'sendReport',
|
|
441
441
|
logData: {
|
|
442
442
|
fileDate: inputData.fileDate,
|
|
443
|
-
reportName:
|
|
443
|
+
reportName: req.report?.reportConfigs?.reportName,
|
|
444
444
|
clientId: getReportList[0].clientId,
|
|
445
445
|
},
|
|
446
446
|
};
|