mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:06:47 +00:00
Fix ZRANGE arguments in get_items.lua
This commit is contained in:
1 parent
d31ddb72f3
commit
20902df122
1 file changed
+9
-1
@@ -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