tango-app-api-infra 3.9.5-vms.63 → 3.9.5-vms.64
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
|
@@ -564,11 +564,13 @@ export async function ticketCreation( req, res, next ) {
|
|
|
564
564
|
$match: {
|
|
565
565
|
clientId: getstoreName.clientId,
|
|
566
566
|
role: 'admin',
|
|
567
|
+
isActive: true,
|
|
567
568
|
},
|
|
568
569
|
},
|
|
569
570
|
];
|
|
570
571
|
|
|
571
572
|
const finduserList = await aggregateUser( userQuery );
|
|
573
|
+
console.log( '🚀 ~ ticketCreation ~ finduserList:', finduserList.length );
|
|
572
574
|
|
|
573
575
|
const createdOn = dayjs().format( 'DD MMM YYYY' );
|
|
574
576
|
const title = `${getstoreName?.storeName} Have raised a ticket for a Footfall Mismatch`;
|
|
@@ -594,10 +596,12 @@ export async function ticketCreation( req, res, next ) {
|
|
|
594
596
|
m.name === 'reviewer' && ( m.isAdd === true || m.isEdit === true ),
|
|
595
597
|
),
|
|
596
598
|
);
|
|
599
|
+
console.log( '🚀 ~ ticketCreation ~ ticketsFeature:', ticketsFeature );
|
|
597
600
|
|
|
598
601
|
if ( !ticketsFeature ) return;
|
|
599
602
|
|
|
600
603
|
const notifyUser = await getAssinedStore( userData, req.body.storeId );
|
|
604
|
+
console.log( '🚀 ~ ticketCreation ~ notifyUser:', notifyUser );
|
|
601
605
|
if ( !notifyUser || !userData?.fcmToken ) return;
|
|
602
606
|
|
|
603
607
|
await sendPushNotification( title, description, userData.fcmToken, Data );
|
|
@@ -1260,11 +1264,12 @@ export async function ticketReview( req, res, next ) {
|
|
|
1260
1264
|
$match: {
|
|
1261
1265
|
clientId: getstoreName.clientId,
|
|
1262
1266
|
role: 'admin',
|
|
1267
|
+
isActive: true,
|
|
1263
1268
|
},
|
|
1264
1269
|
},
|
|
1265
1270
|
];
|
|
1266
1271
|
let finduserList = await aggregateUser( userQuery );
|
|
1267
|
-
console.log( '🚀 ~ ticketReview ~ finduserList:', finduserList );
|
|
1272
|
+
console.log( '🚀 ~ ticketReview ~ finduserList:', finduserList.length );
|
|
1268
1273
|
|
|
1269
1274
|
// return;
|
|
1270
1275
|
for ( let userData of finduserList ) {
|
|
@@ -1759,6 +1764,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1759
1764
|
$match: {
|
|
1760
1765
|
clientId: getstoreName.clientId,
|
|
1761
1766
|
role: 'admin',
|
|
1767
|
+
isActive: true,
|
|
1762
1768
|
},
|
|
1763
1769
|
},
|
|
1764
1770
|
];
|