tango-app-api-trax 1.0.0-beta-task.33 → 1.0.0-beta-task.34
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
|
@@ -3576,11 +3576,10 @@ export async function sendAlert( req, res ) {
|
|
|
3576
3576
|
let query = {
|
|
3577
3577
|
date_iso: new Date( dayjs().format( 'YYYY-MM-DD' ) ),
|
|
3578
3578
|
...( inputBody?.sourceCheckList_id ) ? { sourceCheckList_id: new mongoose.Types.ObjectId( inputBody.sourceCheckList_id ) } : { _id: { $in: inputBody.id } },
|
|
3579
|
-
timeFlag: 0,
|
|
3579
|
+
// timeFlag: 0,
|
|
3580
3580
|
// ...( inputBody?.checklistStatus && inputBody?.checklistStatus != 'all' ) ? { checklistStatus: inputBody.status } : { checklistStatus: { $ne: 'submit' } },
|
|
3581
|
-
...( inputBody?.checklistStatus && inputBody?.checklistStatus
|
|
3581
|
+
...( inputBody?.checklistStatus && ( inputBody?.checklistStatus == 'all' || inputBody?.checklistStatus == 'redo' ) ) ? { checklistStatus: { $ne: 'submit' } } : { checklistStatus: inputBody.checklistStatus },
|
|
3582
3582
|
};
|
|
3583
|
-
|
|
3584
3583
|
query = [ { $match: query } ];
|
|
3585
3584
|
|
|
3586
3585
|
query.push( {
|