tango-app-api-task 3.2.1-beta-2 → 3.2.1-beta-3

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-2",
3
+ "version": "3.2.1-beta-3",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -15476,7 +15476,7 @@ export async function createAiChecklist( req, res ) {
15476
15476
  userId = userDetails._id;
15477
15477
  }
15478
15478
 
15479
- let title = `New Task Alert ${inputBody.taskName}`;
15479
+ let title = `New Task Alert ${inputBody.taskName}-${storeDetails.storeName}-${dayjs().format( 'YYYY-MM-DD' )}`;
15480
15480
  let time = inputBody?.scheduleEndTime || '11:59 PM';
15481
15481
  let date = inputBody?.scheduleDate || dayjs().format( 'YYYY-MM-DD' );
15482
15482
  let description = `A new task has been assigned to ${storeDetails.storeName}. Please complete it before the due date of ${date}.`;
@@ -15489,7 +15489,7 @@ export async function createAiChecklist( req, res ) {
15489
15489
  console.log( userAdmin );
15490
15490
 
15491
15491
  let data = {
15492
- checkListName: inputBody.taskName,
15492
+ checkListName: `${inputBody.taskName}-${storeDetails.storeName}-${dayjs().format( 'YYYY-MM-DD' )}`,
15493
15493
  checkListDescription: inputBody.checkListDescription,
15494
15494
  createdBy: userAdmin._id,
15495
15495
  createdByName: userAdmin.userName,
@@ -15520,7 +15520,7 @@ export async function createAiChecklist( req, res ) {
15520
15520
  checkListId: response._id,
15521
15521
  type: 'task',
15522
15522
  client_id: inputBody.clientId,
15523
- checkListName: inputBody?.taskName || '',
15523
+ checkListName: data?.checkListName || '',
15524
15524
  } );
15525
15525
  } );
15526
15526
  await traxApprover.insertMany( data );