From 36dfccdc8c35aaee95269f52aef2811753b58405 Mon Sep 17 00:00:00 2001 From: vanpho93 Date: Thu, 2 Mar 2023 17:55:25 +0700 Subject: [PATCH] fix: revert promotion starup file Signed-off-by: vanpho93 --- packages/api-plugin-promotions/src/startup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-plugin-promotions/src/startup.js b/packages/api-plugin-promotions/src/startup.js index 040d38de6f8..70b7ac9674c 100644 --- a/packages/api-plugin-promotions/src/startup.js +++ b/packages/api-plugin-promotions/src/startup.js @@ -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;