diff --git a/src/commands/includes/removeZSetJobs.lua b/src/commands/includes/removeZSetJobs.lua index d2bf808322..5858b191b5 100644 --- a/src/commands/includes/removeZSetJobs.lua +++ b/src/commands/includes/removeZSetJobs.lua @@ -8,7 +8,7 @@ local function removeZSetJobs(keyName, hard, baseKey, max) local count = removeJobs(jobs, hard, baseKey, max) if(#jobs > 0) then for from, to in batches(#jobs, 7000) do - rcall("ZREM", keyName, unpack(jobs)) + rcall("ZREM", keyName, unpack(jobs, from, to)) end end return count