tango-app-api-task 3.7.46 → 3.7.48
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
|
@@ -1368,8 +1368,8 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1368
1368
|
let getquestionQuery = [];
|
|
1369
1369
|
|
|
1370
1370
|
if ( dayjs( getCLconfig.publishDate ).format( 'YYYY-MM-DD' ) != dayjs( date ).format( 'YYYY-MM-DD' ) ) {
|
|
1371
|
-
let todayDate = `${dayjs( date ).format( 'YYYY-MM-DD' )}
|
|
1372
|
-
startTimeIso = dayjs.utc( todayDate, 'YYYY-MM-DD
|
|
1371
|
+
let todayDate = `${dayjs.utc( date ).format( 'YYYY-MM-DD hh:mm A' )}`;
|
|
1372
|
+
startTimeIso = dayjs.utc( todayDate, 'YYYY-MM-DD hh:mm A' );
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
getquestionQuery.push( {
|
|
@@ -1514,7 +1514,7 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1514
1514
|
element4.date_string = dayjs( date ).format( 'YYYY-MM-DD' );
|
|
1515
1515
|
element4.allowedOverTime = false;
|
|
1516
1516
|
element4.allowedStoreLocation = getCLconfig.allowedStoreLocation;
|
|
1517
|
-
element4.scheduleStartTime = '
|
|
1517
|
+
element4.scheduleStartTime = startTimeIso.format( 'hh:mm A' );
|
|
1518
1518
|
element4.scheduleStartTime_iso = startTimeIso.format();
|
|
1519
1519
|
element4.scheduleEndTime = getCLconfig.scheduleEndTime;
|
|
1520
1520
|
element4.scheduleEndTime_iso = endTimeIso.format();
|
|
@@ -1953,7 +1953,7 @@ export async function createChecklistTask( req, res ) {
|
|
|
1953
1953
|
priorityType: 'high',
|
|
1954
1954
|
client_id: inputBody.clientId,
|
|
1955
1955
|
checkListType: inputBody.checkListType,
|
|
1956
|
-
publishDate: dayjs
|
|
1956
|
+
publishDate: dayjs().format(),
|
|
1957
1957
|
locationCount: 1,
|
|
1958
1958
|
...( inputBody?.checkListId ) ? { referenceCheckListId: inputBody?.checkListId } : {},
|
|
1959
1959
|
coverage: checklistDetails?.coverage || 'store',
|