Skip to content

Commit

Permalink
error in job
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu committed May 10, 2024
1 parent 0dc7ed4 commit 65a30f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medusa-plugin-abandoned-cart",
"version": "2.0.5",
"version": "2.0.51",
"description": "Medusa plugin for abandoned cart tracking and recovery",
"author": "Lucjan Grzesik (https://github.com/luluhoc)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/schedule-abandoned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default async function handler({

// logger.info(cart.abandoned_lastdate)
// logger.info(new Date(cart.abandoned_lastdate).getTime() + parse("5m"))
if (cart.abandoned_lastdate && (new Date(new Date(cart.abandoned_lastdate).getTime() + parse("1s")) > now)) {
if (cart.abandoned_lastdate && (new Date(new Date(cart.abandoned_lastdate).getTime() + parse("3m")) > now)) {
// logger.info(`This Cart ${cart.id} has been processed recently`)
continue
}
Expand Down

0 comments on commit 65a30f4

Please sign in to comment.