tango-app-api-trax 3.7.45 → 3.7.47

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.7.45",
3
+ "version": "3.7.47",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2771,7 +2771,7 @@ export async function checklistCreation( req, res ) {
2771
2771
  inputBody.userEmail = finduser.email;
2772
2772
 
2773
2773
 
2774
- let title = `New Checklist Alert ${inputBody.checklistName}-`+storeDetails?.storeName ? storeDetails?.storeName : ``+`-${dayjs().format( 'YYYY-MM-DD' )}`;
2774
+ let title = `New Checklist Alert ${inputBody.checklistName}-`+storeDetails?.storeName ? storeDetails?.storeName + `-` : ``+`${dayjs().format( 'YYYY-MM-DD' )}`;
2775
2775
  let time = inputBody?.scheduleEndTime || '11:59 PM';
2776
2776
  let date = inputBody?.scheduleDate || dayjs().format( 'YYYY-MM-DD' );
2777
2777
  let description = `A new Checklist has been assigned to`+storeDetails?.storeName ? storeDetails?.storeName : `you` +`. Please complete it before the due date of ${date}.`;
@@ -2805,7 +2805,7 @@ export async function checklistCreation( req, res ) {
2805
2805
  if ( inputBody?.storeName ) {
2806
2806
  checklistName = `${inputBody.checklistName}(${storeDetails.storeName}-${dayjs().format( 'YYYY-MM-DD' )})`;
2807
2807
  } else {
2808
- checklistName = `${inputBody.checklistName}(-${dayjs().format( 'YYYY-MM-DD' )})`;
2808
+ checklistName = `${inputBody.checklistName}(${dayjs().format( 'YYYY-MM-DD' )})`;
2809
2809
  }
2810
2810
  let result = await CLconfig.aggregate( [
2811
2811
  { $match: { client_id: req.body.clientId, type: 'checklist' } },
@@ -2837,6 +2837,8 @@ export async function checklistCreation( req, res ) {
2837
2837
  allowedStoreLocation: inputBody.allowedStoreLocation,
2838
2838
  checkListNumber: checkNumber,
2839
2839
  type: 'checklist',
2840
+ schedule: 'onetime',
2841
+ scheduleRepeatedType: 'onetime',
2840
2842
  };
2841
2843
  let clientDetails = await clientService.findOne( { clientId: inputBody?.clientId }, { traxVideoUploadTimeLimit: 1 } );
2842
2844
  data['videoUploadTimeLimit'] = clientDetails?.traxVideoUploadTimeLimit || 0;