tango-app-api-audit 3.4.11 → 3.4.13
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
|
@@ -1409,7 +1409,6 @@ export async function save( req, res ) {
|
|
|
1409
1409
|
fileDate: inputData.fileDate,
|
|
1410
1410
|
moduleType: inputData.moduleType,
|
|
1411
1411
|
zoneName: inputData.zoneName,
|
|
1412
|
-
auditType: inputData.auditType,
|
|
1413
1412
|
},
|
|
1414
1413
|
{
|
|
1415
1414
|
status: 'not_assign',
|
|
@@ -3853,7 +3852,6 @@ export async function auditImages( req, res ) {
|
|
|
3853
3852
|
case 'AC':
|
|
3854
3853
|
|
|
3855
3854
|
const [ filterData, auditImageAC ] = await Promise.all( [ getAuditFilterData( inputData ), getAuditImageData( inputData ) ] );
|
|
3856
|
-
|
|
3857
3855
|
if ( filterData?.errorCode || auditImageAC?.errorCode ) {
|
|
3858
3856
|
const error = ( filterData?.error || auditImageAC.error ) || 'Internal Server Error- get AC from Bucket';
|
|
3859
3857
|
const code = filterData?.errorCode || auditImageAC.errorCode;
|
|
@@ -150,14 +150,16 @@ const filteredCustomerMap = async ( data ) => {
|
|
|
150
150
|
const mapFunction = async ( chunkData, filterData ) => {
|
|
151
151
|
for ( const data of filterData ) {
|
|
152
152
|
const mappedIds = data.mappedid;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
item.temp_ids
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
153
|
+
if ( data?.mappedid ) {
|
|
154
|
+
for ( const mappedId of mappedIds ) {
|
|
155
|
+
chunkData.find( ( item ) => {
|
|
156
|
+
if ( mappedId.img_name === item.temp_ids ) {
|
|
157
|
+
item.temp_ids = data.img_name;
|
|
158
|
+
mappedId.img_name === data.img_name? null: item.query_status = '';
|
|
159
|
+
item.demographic = data.demographic || '';
|
|
160
|
+
}
|
|
161
|
+
} );
|
|
162
|
+
}
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
return chunkData;
|