tango-app-api-audit 3.4.11-alpha.24 → 3.4.11-alpha.25
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
|
@@ -1365,19 +1365,9 @@ export async function save( req, res ) {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
await insertOpenSearchData( openSearch.auditLog, logData );
|
|
1367
1367
|
|
|
1368
|
-
let storeConfig = await findOneStore(
|
|
1369
|
-
{
|
|
1370
|
-
storeId: req.userAudit?.storeId,
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
auditConfigs: 1,
|
|
1374
|
-
clientId: 1,
|
|
1375
|
-
},
|
|
1376
|
-
);
|
|
1377
|
-
|
|
1378
1368
|
let clientData = await findClient( { clientId: req.userAudit?.clientId } );
|
|
1379
1369
|
const ratio = ( ( storeAuditData.beforeCount - inputData.customerCount ) / storeAuditData.beforeCount );
|
|
1380
|
-
if ( ratio <
|
|
1370
|
+
if ( ratio < clientData[0].auditConfigs.ratio &&
|
|
1381
1371
|
inputData.auditType == 'Audit' &&
|
|
1382
1372
|
inputData.moduleType == 'traffic'
|
|
1383
1373
|
) {
|