tango-app-api-store-zone 3.3.1-beta.17 → 3.3.1-beta.18
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
|
@@ -769,6 +769,11 @@ export const deleteTag = async ( req, res ) => {
|
|
|
769
769
|
if ( !taggingDetails.length ) {
|
|
770
770
|
return res.sendError( 'no data found', 204 );
|
|
771
771
|
}
|
|
772
|
+
|
|
773
|
+
let tagNameDetails = await taggingService.findOne( { clientId: req.body.clientId, tagName: req.body.tagName, $expr: { $ne: [ { $size: '$coordinates' }, 0 ] } } );
|
|
774
|
+
if ( tagNameDetails ) {
|
|
775
|
+
return res.sendError( 'This zone tag is already mapped to other stores.', 400 );
|
|
776
|
+
}
|
|
772
777
|
// let enableDelete = false;
|
|
773
778
|
// if ( req.user.permission ) {
|
|
774
779
|
// let permissions = req.user.permission;
|