mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 16:48:04 +01:00
Fix ZRANGE arguments in get_items.lua
This commit is contained in:
@@ -8,4 +8,12 @@ if locked then
|
||||
return {}
|
||||
end
|
||||
|
||||
return redis.call("ZRANGE", queueKey, 0, limit, "WITHSCORES")
|
||||
-- The range is inclusive
|
||||
local min = 0
|
||||
local max = limit - 1
|
||||
|
||||
if max < 0 then
|
||||
return {}
|
||||
end
|
||||
|
||||
return redis.call("ZRANGE", queueKey, min, max, "WITHSCORES")
|
||||
|
||||
Reference in New Issue
Block a user