Skip to content

Commit

Permalink
fix: revert promotion starup file
Browse files Browse the repository at this point in the history
Signed-off-by: vanpho93 <[email protected]>
  • Loading branch information
vanpho93 committed May 19, 2023
1 parent d943372 commit 36dfccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-plugin-promotions/src/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const logCtx = {
export default async function startupPromotions(context) {
const { bullQueue } = context;
await bullQueue.createQueue(context, "setPromotionState", { jobName: "checkForChangedStates" }, setPromotionState(context));
await bullQueue.scheduleJob(context, "setPromotionState", "checkForChangedStates", {}, "*/1 * * * *");
await bullQueue.scheduleJob(context, "setPromotionState", "checkForChangedStates", {}, "*/5 * * * *");
Logger.info(logCtx, "Add setPromotionState queue and job");
await bullQueue.createQueue(context, "checkExistingCarts", {}, checkCartForPromotionChange(context));
return true;
Expand Down

0 comments on commit 36dfccd

Please sign in to comment.