tango-app-api-audit 1.0.27 → 1.0.28

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audit",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1209,7 +1209,7 @@ export async function reTrigger( req, res ) {
1209
1209
  }
1210
1210
 
1211
1211
  const storeRecord ={
1212
- status: userAudit?.auditStatus !== 'completed' ? 'skipped': 'not_assign',
1212
+ status: req.audit.status !== 'completed' ? 'skipped': 'not_assign',
1213
1213
  };
1214
1214
 
1215
1215
  await updateOneStoreAudit( query, storeRecord );
@@ -1264,7 +1264,7 @@ export async function reTrigger( req, res ) {
1264
1264
  }
1265
1265
 
1266
1266
  const storeRecord ={
1267
- status: userAudit?.auditStatus !== 'completed' ? 'skipped': 'assigned',
1267
+ status: req.audit.status !== 'completed' ? 'skipped': 'assigned',
1268
1268
  };
1269
1269
 
1270
1270
  await updateOneStoreAudit( query, storeRecord );