tango-app-api-analysis-traffic 3.8.7-vms.10 → 3.8.7-vms.11

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-analysis-traffic",
3
- "version": "3.8.7-vms.10",
3
+ "version": "3.8.7-vms.11",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -612,12 +612,17 @@ export async function tagTempId( req, res ) {
612
612
  status: inputData?.revopsType == 'non-tagging' ?'':'submitted',
613
613
  description: '',
614
614
  isChecked: inputData.isChecked,
615
- duplicateImage: inputData?.duplicateImage?.length>0? inputData?.duplicateImage :[],
616
615
  // Add id to each object in duplicateImage if it exists and is an array
617
616
  duplicateImage: Array.isArray( inputData?.duplicateImage ) ?
618
617
  inputData.duplicateImage.map( ( img ) => ( {
619
618
  ...img,
620
619
  id: `${inputData?.storeId}_${inputData?.dateString}_${img?.tempId}`,
620
+ actions: [
621
+ {
622
+ actionType: 'tagging',
623
+ action: 'submitted',
624
+ },
625
+ ],
621
626
  } ) ) :
622
627
  [],
623
628
  type: 'tagging-reflect',