tango-app-api-trax 3.7.38 → 3.7.39
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
|
@@ -2748,7 +2748,7 @@ export async function checklistCreation( req, res ) {
|
|
|
2748
2748
|
let inputBody = req.body;
|
|
2749
2749
|
|
|
2750
2750
|
inputBody.clientId = 458;
|
|
2751
|
-
inputBody.
|
|
2751
|
+
inputBody.checklistDescription = '';
|
|
2752
2752
|
let userId;
|
|
2753
2753
|
let storeDetails;
|
|
2754
2754
|
if ( inputBody?.coverage == 'store' ) {
|
|
@@ -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.
|
|
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}.`;
|
|
@@ -2851,7 +2851,7 @@ export async function checklistCreation( req, res ) {
|
|
|
2851
2851
|
inputData.push( {
|
|
2852
2852
|
userEmail: ele.email,
|
|
2853
2853
|
checkListId: response._id,
|
|
2854
|
-
type: '
|
|
2854
|
+
type: 'checklist',
|
|
2855
2855
|
client_id: inputBody.clientId,
|
|
2856
2856
|
checkListName: data?.checkListName || '',
|
|
2857
2857
|
} );
|