diff --git a/src/commands/addJobScheduler-6.lua b/src/commands/addJobScheduler-6.lua index 3d9e37d9da..eb407cdd3f 100644 --- a/src/commands/addJobScheduler-6.lua +++ b/src/commands/addJobScheduler-6.lua @@ -91,7 +91,7 @@ local prevMillis = rcall("ZSCORE", repeatKey, jobSchedulerId) if prevMillis ~= false then local prevDelayedJobId = "repeat:" .. jobSchedulerId .. ":" .. prevMillis - if rcall("ZSCORE", delayedKey, prevDelayedJobId) ~= false and then + if rcall("ZSCORE", delayedKey, prevDelayedJobId) ~= false then removeJob(prevDelayedJobId, true, prefixKey, true --[[remove debounce key]]) rcall("ZREM", delayedKey, prevDelayedJobId) end