tango-app-api-trax 3.5.2-alpha-2 → 3.5.2-alpha-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.5.2-alpha-2",
3
+ "version": "3.5.2-alpha-5",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -701,7 +701,7 @@ export async function getLogs( req, res ) {
701
701
 
702
702
  export async function approvalstatus( req, res ) {
703
703
  try {
704
- let Approver = await ApproverModel.find( { checkListId: req.body.checklistId } );
704
+ let Approver = await ApproverModel.find( { checkListId: req.body.checklistId, isDeleted: false } );
705
705
  if ( Approver.length === 0 ) {
706
706
  return res.sendSuccess( 'suceess' );
707
707
  }
@@ -2947,6 +2947,14 @@ export const overallComparisonCardsV1 = async ( req, res ) => {
2947
2947
  processedchecklistService.aggregate( rangeTwoFindQuery ),
2948
2948
  ] );
2949
2949
 
2950
+ console.log( 'rangeOneFromDate =>', rangeOneFromDate );
2951
+ console.log( 'rangeOneToDate =>', rangeOneToDate );
2952
+ console.log( 'rangeOneData =>', rangeOneData );
2953
+
2954
+ console.log( 'rangeTwoFromDate =>', rangeTwoFromDate );
2955
+ console.log( 'rangeTwoToDate =>', rangeTwoToDate );
2956
+ console.log( 'rangeTwoData =>', rangeTwoData );
2957
+
2950
2958
  if ( rangeOneData.length >0 && rangeTwoData.length >0 ) {
2951
2959
  overallComparisonCards.flags.comparisonData = Math.round( ( ( ( rangeOneData[0].flaggedChecklist - rangeTwoData[0].flaggedChecklist )/rangeTwoData[0].flaggedChecklist )*100 ) ); // .toFixed( 2 )
2952
2960
  if ( overallComparisonCards.flags.comparisonData > 0 ) {