tango-app-api-trax 3.5.0-alpha-10 → 3.5.0-alpha-13

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.0-alpha-10",
3
+ "version": "3.5.0-alpha-13",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "nodemon": "^3.1.4",
28
28
  "path": "^0.12.7",
29
29
  "tango-api-schema": "^2.2.116",
30
- "tango-app-api-middleware": "^3.1.72",
30
+ "tango-app-api-middleware": "^3.1.77",
31
31
  "url": "^0.11.4",
32
32
  "winston": "^3.13.1",
33
33
  "winston-daily-rotate-file": "^5.0.0"
@@ -1068,6 +1068,13 @@ export async function userList( req, res ) {
1068
1068
  },
1069
1069
  }, clientId: req.body.clientId } );
1070
1070
  req.body.teams = findTeams.map( ( data ) => data.teamName );
1071
+ if ( req.body.teams.length===0 ) {
1072
+ query.push( {
1073
+ $match: {
1074
+ userEmail: { $in: [] },
1075
+ },
1076
+ } );
1077
+ }
1071
1078
  }
1072
1079
 
1073
1080
  if ( req.body.teams && req.body.teams.length > 0 ) {
@@ -2132,7 +2132,7 @@ export async function submiteyeTestTask( req, res ) {
2132
2132
  return res.sendError( 'Qr code already Exists', 400 );
2133
2133
  }
2134
2134
 
2135
- await cameraService.updateOne( { streamName: streamId }, { qrCode: qrCode,isEyeTestStream:true } );
2135
+ await cameraService.updateOne( { streamName: streamId }, { qrCode: qrCode, isEyeTestStream: true } );
2136
2136
  return res.sendSuccess( 'Qr code added successfully' );
2137
2137
 
2138
2138
  const findQuery = [
@@ -1,4 +1,4 @@
1
- import { download, logger } from 'tango-app-api-middleware'; // getChecklistUsers
1
+ import { download, logger, convertSecondstoTimeFormat } from 'tango-app-api-middleware'; // getChecklistUsers
2
2
  import { aggregate } from '../services/processedchecklist.services.js';
3
3
  import dayjs from 'dayjs';
4
4
  import * as processedchecklistService from '../services/processedchecklist.services.js';
@@ -2011,6 +2011,8 @@ export const flagChecklistCardsV1 = async ( req, res ) => {
2011
2011
  let resultData = await LamdaServiceCall( LamdaURL, reqestData );
2012
2012
  if ( resultData ) {
2013
2013
  if ( resultData.status_code == '200' ) {
2014
+ resultData.customerunattendedCards.timeTakentoAssist_string = await convertSecondstoTimeFormat( resultData.customerunattendedCards.timeTakentoAssistsec.secs );
2015
+ resultData.customerunattendedCards.timeSpentwithCustomer_string = await convertSecondstoTimeFormat( resultData.customerunattendedCards.timeSpentwithCustomersec.secs );
2014
2016
  return res.sendSuccess( resultData );
2015
2017
  } else {
2016
2018
  return res.sendError( 'No Content', 204 );