tango-app-api-store-zone 3.3.2 → 3.3.3

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.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "zone",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -853,19 +853,6 @@ export const tagging = async ( req, res ) => {
853
853
  await externalService.create( data );
854
854
  }
855
855
 
856
- let cameraDetails = await cameraService.findOne( { _id: InputData.cameraId, streamName: InputData.streamName }, { productModule: 1 } );
857
- if ( cameraDetails ) {
858
- if ( !cameraDetails?.productModule.includes( 'tangoZone' ) ) {
859
- cameraDetails.productModule.push( { productName: 'tangoZone', checked: true } );
860
- cameraDetails.save();
861
- } else {
862
- let camIndex = cameraDetails.productModule.findIndex( ( ele ) => ele.productName == 'tangoZone' );
863
- if ( !cameraDetails?.productModule?.[camIndex]?.checked ) {
864
- cameraDetails.productModule[camIndex].checked = true;
865
- cameraDetails.save();
866
- }
867
- }
868
- }
869
856
  await updatezoneTagging( req, res );
870
857
  } catch ( e ) {
871
858
  logger.error( { error: e, function: 'tagging' } );