tango-app-api-task 3.2.1-beta-4 → 3.2.1-beta-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-task",
3
- "version": "3.2.1-beta-4",
3
+ "version": "3.2.1-beta-5",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1268,19 +1268,19 @@ export async function createChecklistTask( req, res ) {
1268
1268
  userId = userDetails._id;
1269
1269
  }
1270
1270
 
1271
- let title = `New Task Alert ${inputBody.checkListName}`;
1272
- let description = '';
1271
+ // let title = `New Task Alert ${inputBody.checkListName}`;
1272
+ // let description = '';
1273
1273
 
1274
- if ( inputBody.checkListType === 'checklistTask' ) {
1275
- description = `A new task has been generated from the response for ${inputBody.storeName}.`;
1276
- } else if ( inputBody.checkListType === 'CCTV' ) {
1277
- description = `A new task has been generated from the Live view for ${inputBody.storeName}.`;
1278
- }
1274
+ // if ( inputBody.checkListType === 'checklistTask' ) {
1275
+ // description = `A new task has been generated from the response for ${inputBody.storeName}.`;
1276
+ // } else if ( inputBody.checkListType === 'CCTV' ) {
1277
+ // description = `A new task has been generated from the Live view for ${inputBody.storeName}.`;
1278
+ // }
1279
1279
 
1280
- if ( userDetails.fcmToken ) {
1281
- const fcmToken = userDetails.fcmToken;
1282
- await sendPushNotification( title, description, fcmToken );
1283
- }
1280
+ // if ( userDetails.fcmToken ) {
1281
+ // const fcmToken = userDetails.fcmToken;
1282
+ // await sendPushNotification( title, description, fcmToken );
1283
+ // }
1284
1284
 
1285
1285
  let time = inputBody?.scheduleEndTime || '11:59 PM';
1286
1286
  let date = inputBody?.scheduleDate || dayjs().format( 'YYYY-MM-DD' );
@@ -1407,6 +1407,7 @@ export async function createChecklistTask( req, res ) {
1407
1407
  taskId: String( response?._id ),
1408
1408
  taskStatus: true,
1409
1409
  task: true,
1410
+ taskDate: dayjs( response.scheduleDate ).format( 'YYYY-MM-DD' ),
1410
1411
  },
1411
1412
  };
1412
1413
  console.log( params );