tango-app-api-audit 3.3.0-alpha.0 → 3.3.0-alpha.2
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
|
@@ -632,7 +632,7 @@ export async function getFilterData( msg ) {
|
|
|
632
632
|
try {
|
|
633
633
|
const bucket = JSON.parse( process.env.BUCKET );
|
|
634
634
|
const params = {
|
|
635
|
-
Bucket: `${bucket.
|
|
635
|
+
Bucket: `${bucket.auditUploadBucket}`,
|
|
636
636
|
Key: `${msg.store_id}/${msg.zone_id}/${msg.curr_date}/${bucket.masterJsonFile}`,
|
|
637
637
|
};
|
|
638
638
|
const mappingFile = await getJsonFileData( params );
|
|
@@ -1339,6 +1339,7 @@ export async function save( req, res ) {
|
|
|
1339
1339
|
QueueUrl: `${sqs.url}${queueName}`,
|
|
1340
1340
|
MessageBody: JSON.stringify( {
|
|
1341
1341
|
store_id: inputData.storeId,
|
|
1342
|
+
zone_id: inputData.zoneName,
|
|
1342
1343
|
audit_type: 'ReAudit',
|
|
1343
1344
|
curr_date: inputData.fileDate,
|
|
1344
1345
|
total_count: inputData.customerCount,
|
|
@@ -302,7 +302,7 @@ export async function getAuditFilterData( data ) {
|
|
|
302
302
|
const storeId = data.storeId;
|
|
303
303
|
const fileDate = data.fileDate;
|
|
304
304
|
const params = {
|
|
305
|
-
Bucket: `${bucket.
|
|
305
|
+
Bucket: `${bucket.auditUploadBucket}`,
|
|
306
306
|
Key: `${storeId}/${data.zoneName}/${fileDate}/${bucket.masterJsonFile}`,
|
|
307
307
|
};
|
|
308
308
|
const mappingFile = await getJsonFileData( params );
|
|
@@ -50,7 +50,7 @@ export async function getZoneAuditFilterData( data ) {
|
|
|
50
50
|
const storeId = data.storeId;
|
|
51
51
|
const fileDate = data.fileDate;
|
|
52
52
|
const params = {
|
|
53
|
-
Bucket: `${bucket.
|
|
53
|
+
Bucket: `${bucket.auditUploadBucket}`,
|
|
54
54
|
Key: `${storeId}/${data.zoneName}/${fileDate}/${bucket.masterJsonFile}`,
|
|
55
55
|
};
|
|
56
56
|
const mappingFile = await getJsonFileData( params );
|