Fixing an issue with pausing automations.
This commit is contained in:
parent
97aaa7b28a
commit
489b4066b9
|
@ -59,7 +59,7 @@ async function checkForCronTriggers({ appId, oldAuto, newAuto }) {
|
|||
|
||||
const cronTriggerActivated = isLive(newAuto) && !isLive(oldAuto)
|
||||
|
||||
if (cronTriggerRemoved || cronTriggerDeactivated) {
|
||||
if (cronTriggerRemoved || cronTriggerDeactivated && oldTrigger.cronJobId) {
|
||||
await triggers.automationQueue.removeRepeatableByKey(oldTrigger.cronJobId)
|
||||
}
|
||||
// need to create cron job
|
||||
|
|
Loading…
Reference in New Issue