fix minor bug
This commit is contained in:
+7
-8
@@ -122,10 +122,15 @@ const emailUtils = require("./email-utils");
|
||||
waitUntil: ["domcontentloaded"],
|
||||
});
|
||||
|
||||
// generate json from excel mark it processed
|
||||
const unprocessedFolderPath = path.join(
|
||||
config[environment].temu_orders_path,
|
||||
"unprocessed"
|
||||
);
|
||||
|
||||
/*
|
||||
* request order report
|
||||
*/
|
||||
|
||||
try {
|
||||
const orderRequestSelector = "div._3yOxLjm0._2pgGmJ7w.IoqjAtdZ.vbGE0cGC";
|
||||
const element = await page.$(orderRequestSelector);
|
||||
@@ -224,14 +229,8 @@ const emailUtils = require("./email-utils");
|
||||
|
||||
// wait 60 seconds
|
||||
await new Promise((resolve) => setTimeout(resolve, 30 * 1000));
|
||||
|
||||
// generate json from excel mark it processed
|
||||
const unprocessedFolderPath = path.join(
|
||||
config[environment].temu_orders_path,
|
||||
"unprocessed"
|
||||
);
|
||||
} catch (e) {
|
||||
emailUtils.notify( `Sync Temu Orders`, e.message );
|
||||
emailUtils.notify(`Sync Temu Orders`, e.message);
|
||||
}
|
||||
|
||||
// Function to read Excel files and convert to JSON
|
||||
|
||||
@@ -329,7 +329,7 @@ exports.getFirstDayToCurrentMonth = getFirstDayToCurrentMonth;
|
||||
* write a function to convert UTC into pakistan standard time using luxon libraryy in 12 hour
|
||||
*/
|
||||
const getPakistanStandardTime = function( utcTime ){
|
||||
return DateTime.fromISO( utcTime ).setZone('Asia/Karachi').toFormat('dd-MMM-yyyy HH:mm:ss a');
|
||||
return DateTime.fromISO( utcTime ).setZone('Asia/Karachi').toFormat('dd-MMM-yyyy hh:mm:ss a');
|
||||
}
|
||||
exports.getPakistanStandardTime = getPakistanStandardTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user