tango-app-api-trax 3.2.0-beta.10 → 3.2.0-beta.11
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
|
@@ -3552,8 +3552,9 @@ export async function sendAlert( req, res ) {
|
|
|
3552
3552
|
let query = {
|
|
3553
3553
|
date_iso: new Date( dayjs().format( 'YYYY-MM-DD' ) ),
|
|
3554
3554
|
...( inputBody?.sourceCheckList_id ) ? { sourceCheckList_id: new mongoose.Types.ObjectId( inputBody.sourceCheckList_id ) } : { _id: { $in: inputBody.id } },
|
|
3555
|
-
timeFlag: 0,
|
|
3556
|
-
...( inputBody?.checklistStatus && inputBody?.checklistStatus != 'all' ) ? { checklistStatus: inputBody.status } : { checklistStatus: { $ne: 'submit' } },
|
|
3555
|
+
// timeFlag: 0,
|
|
3556
|
+
// ...( inputBody?.checklistStatus && inputBody?.checklistStatus != 'all' ) ? { checklistStatus: inputBody.status } : { checklistStatus: { $ne: 'submit' } },
|
|
3557
|
+
...( inputBody?.checklistStatus && ( inputBody?.checklistStatus == 'all' || inputBody?.checklistStatus == 'redo' ) ) ? { checklistStatus: { $ne: 'submit' } } : { checklistStatus: inputBody.checklistStatus },
|
|
3557
3558
|
};
|
|
3558
3559
|
|
|
3559
3560
|
query = [ { $match: query } ];
|