tango-app-api-task 3.7.29 → 3.7.31
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
|
@@ -7252,8 +7252,8 @@ export async function AITaskCreation( req, res ) {
|
|
|
7252
7252
|
// Send Push Notification
|
|
7253
7253
|
// inputBody.approver = inputBody.approver.replace( /,$/, '' );
|
|
7254
7254
|
let title = `New Task Alert ${inputBody.taskName}-${storeData.storeName}-${dayjs().format( 'YYYY-MM-DD' )}`;
|
|
7255
|
-
let time = dayjs
|
|
7256
|
-
let date = dayjs
|
|
7255
|
+
let time = inputBody?.scheduleEndTime || dayjs().format( 'YYYY-MM-DD' );
|
|
7256
|
+
let date = inputBody?.scheduleDate || dayjs().format( 'YYYY-MM-DD' );
|
|
7257
7257
|
let description = `A new task has been assigned to ${storeData.storeName}. Please complete it before the due date of ${date}.`;
|
|
7258
7258
|
await Promise.all( finduser.map( async ( ele ) => {
|
|
7259
7259
|
if ( ele && ele.fcmToken ) {
|