Skip to content

Commit

Permalink
error in lastdata
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu committed May 10, 2024
1 parent 65a30f4 commit cb1f253
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/jobs/schedule-abandoned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ export default async function handler({

if (cart.abandoned_lastdate &&
cart.abandoned_last_interval &&
(new Date(new Date(cart.abandoned_lastdate).getTime()) < new Date(new Date(cart.abandoned_lastdate).getTime() + int))) {
// logger.info(`This Cart ${cart.id} has been processed recently and will be processes at next interval`)

(new Date() < new Date(new Date(cart.abandoned_lastdate).getTime() + int))) {
if (process.env.BETA_TESTING_PLUGIN === "TESTING") {
logger.info(`This Cart ${cart.id} has been processed recently and will be processes at next interval`)
}
continue
}

Expand Down

0 comments on commit cb1f253

Please sign in to comment.