tango-app-api-store-zone 3.0.19-dev → 3.0.20-dev

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-store-zone",
3
- "version": "3.0.19-dev",
3
+ "version": "3.0.20-dev",
4
4
  "description": "zone",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -136,7 +136,7 @@ export const tagging = async ( req, res ) => {
136
136
  insertOpenSearchData( JSON.parse( process.env.OPENSEARCH )?.activityLog, logObj );
137
137
  let response = await taggingService.create( InputData );
138
138
  await taggingService.deleteOne( { clientId: InputData.clientId, storeId: InputData.storeId, cameraId: { $exists: false }, tagName: InputData.tagName } );
139
- await axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingAdd`, [ response ], { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => logger.info( res?.data ) ).catch( ( error ) => logger.error( { error: error } ) );
139
+ axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingAdd`, [ response ], { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => logger.info( res?.data ) ).catch( ( error ) => logger.error( { error: error } ) );
140
140
  } else {
141
141
  const logObj = {
142
142
  clientId: InputData.clientId,
@@ -163,7 +163,7 @@ export const tagging = async ( req, res ) => {
163
163
  if ( InputData.coordinates[0].coor.length ) {
164
164
  taggingDetails.coordinates.push( InputData.coordinates[0] );
165
165
  taggingDetails.save();
166
- await axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingUpdate/${taggingDetails._id}`, taggingDetails, { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
166
+ axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingUpdate/${taggingDetails._id}`, taggingDetails, { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
167
167
  logger.info( res?.data );
168
168
  } ).catch( ( error ) => {
169
169
  logger.error( { error: error } );
@@ -286,7 +286,7 @@ export const updateTag = async ( req, res ) => {
286
286
  } );
287
287
  }
288
288
  taggingCoordinates.forEach( async ( item ) => {
289
- await axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingUpdate/${item._id}`, item, { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
289
+ axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingUpdate/${item._id}`, item, { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
290
290
  logger.info( res?.data );
291
291
  } ).catch( ( error ) => {
292
292
  logger.error( { error: error } );
@@ -350,7 +350,7 @@ export const deleteTag = async ( req, res ) => {
350
350
  }
351
351
  }
352
352
  taggingDetails.forEach( async ( item ) => {
353
- await axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingDelete/${item._id}`, '', { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
353
+ axios.post( `${JSON.parse( process.env.URL ).oldapidomain}/tagging/oldTaggingDelete/${item._id}`, '', { headers: { Authorization: 'Bearer d47433f8-9a33-47c7-ba43-1a0fbac28f66' } } ).then( ( res ) => {
354
354
  logger.info( res?.data );
355
355
  } ).catch( ( error ) => {
356
356
  logger.error( { error: error } );