tango-app-api-analysis-traffic 3.8.7-vms.12 → 3.8.7-vms.14

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.12",
3
+ "version": "3.8.7-vms.14",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -673,7 +673,7 @@ export async function tagTempId( req, res ) {
673
673
  clientId: inputData.storeId.split( '-' )[0],
674
674
  storeId: inputData.storeId,
675
675
  tempId: item.tempId,
676
- id: `${inputData?.storeId}_${inputData?.dateString}_${inputData?.tempId}`,
676
+ id: `${inputData?.storeId}_${inputData?.dateString}_${item?.tempId}`,
677
677
  dateString: inputData.dateString,
678
678
  timeRange: item.timeRange,
679
679
  isChecked: item.isChecked,
@@ -56,8 +56,8 @@ export const tagTempIdSchema = joi.object( {
56
56
 
57
57
  const diff = today.diff( inputDate, 'day' );
58
58
 
59
- if ( diff > 7 ) {
60
- return helpers.message( 'Tagging is not allowed for a period exceeding 7 days' );
59
+ if ( diff > 3 ) {
60
+ return helpers.message( 'Tagging is not allowed for a period exceeding 3 days' );
61
61
  }
62
62
 
63
63
  return value;