tango-app-api-task 3.2.0-beta.4 → 3.2.0-beta.5
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
|
@@ -722,7 +722,7 @@ export async function taskConfig( req, res ) {
|
|
|
722
722
|
if ( inputBody.removedUsers.length ) {
|
|
723
723
|
await taskAssignService.updateMany( { _id: { $in: inputBody.removedUsers } }, { checkFlag: false } );
|
|
724
724
|
}
|
|
725
|
-
let storeConfigDetails = await taskAssignService.find( { checkListId: inputBody._id, checkFlag: true }, { _id: 0, store_id: 1, userEmail: 1 } );
|
|
725
|
+
let storeConfigDetails = await taskAssignService.find( { checkListId: inputBody._id, checkFlag: true }, { _id: 0, store_id: 1, userEmail: 1, storeName: 1 } );
|
|
726
726
|
let storeList = storeConfigDetails.map( ( store ) => store.store_id );
|
|
727
727
|
|
|
728
728
|
storeCount = storeList.length;
|
|
@@ -222,7 +222,6 @@ export const approvalTableV1 = async ( req, res ) => {
|
|
|
222
222
|
},
|
|
223
223
|
...groupQuery,
|
|
224
224
|
];
|
|
225
|
-
promises.push( processedChecklist.aggregate( query ) );
|
|
226
225
|
if ( req.body?.searchValue.trim() && req.body?.searchValue.trim().length ) {
|
|
227
226
|
query.push( {
|
|
228
227
|
$match: {
|
|
@@ -230,6 +229,7 @@ export const approvalTableV1 = async ( req, res ) => {
|
|
|
230
229
|
},
|
|
231
230
|
} );
|
|
232
231
|
}
|
|
232
|
+
promises.push( processedChecklist.aggregate( query ) );
|
|
233
233
|
} else {
|
|
234
234
|
promises.push( Promise.resolve( null ) );
|
|
235
235
|
}
|