tango-app-api-store-zone 3.0.17-dev → 3.0.19-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.17-dev",
3
+ "version": "3.0.19-dev",
4
4
  "description": "zone",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -41,7 +41,7 @@ export const addCustomTag = async ( req, res ) => {
41
41
 
42
42
  export const customTagList = async ( req, res ) => {
43
43
  try {
44
- let customTagList = [];
44
+ let customTagList = [ 'Front', 'Back' ];
45
45
  let storeDetails = await storeService.findOne( { storeId: req.query.storeId }, { product: 1 } );
46
46
  let clientDetails = await clientService.findOne( { clientId: req.query.clientId }, { featureConfigs: 1 } );
47
47
  if ( clientDetails && clientDetails?.featureConfigs?.isExcludedArea ) {
@@ -173,6 +173,13 @@ export const tagging = async ( req, res ) => {
173
173
  }
174
174
  }
175
175
  }
176
+ let storeDetails = await storeService.findOne( { storeId: InputData.storeId }, { progress: 1 } );
177
+ if ( storeDetails ) {
178
+ if ( storeDetails.progress != 100 ) {
179
+ storeDetails.progress = 80;
180
+ storeDetails.save();
181
+ }
182
+ }
176
183
  await updatezoneTagging( req, res );
177
184
  } catch ( e ) {
178
185
  logger.error( { error: e, function: 'tagging' } );
@@ -182,7 +189,7 @@ export const tagging = async ( req, res ) => {
182
189
 
183
190
  export const getCameraList = async ( req, res ) => {
184
191
  try {
185
- let cameraDetails = await cameraService.find( { clientId: req.query.clientId, storeId: req.query.storeId }, { cameraNumber: 1, streamName: 1, isActivated: 1, isUp: 1 } );
192
+ let cameraDetails = await cameraService.find( { clientId: req.query.clientId, storeId: req.query.storeId }, { cameraNumber: 1, streamName: 1, isActivated: 1, isUp: 1, cameraName: 1 } );
186
193
  if ( !cameraDetails.length ) {
187
194
  return res.sendError( 'no data found', 204 );
188
195
  }