Skip to content

Commit 6606471

Browse files
authored
last key index should be -1 (RedisJSON#973)
1 parent 47e05e4 commit 6606471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ macro_rules! redis_json_module_create {(
209209
["json.get", json_command!(json_get), "readonly", 1,1,1],
210210
["json.mget", json_command!(json_mget), "readonly", 1,1,1],
211211
["json.set", json_command!(json_set), "write deny-oom", 1,1,1],
212-
["json.mset", json_command!(json_mset), "write deny-oom", 1,0,3],
212+
["json.mset", json_command!(json_mset), "write deny-oom", 1,-1,3],
213213
["json.type", json_command!(json_type), "readonly", 1,1,1],
214214
["json.numincrby", json_command!(json_num_incrby), "write", 1,1,1],
215215
["json.toggle", json_command!(json_bool_toggle), "write deny-oom", 1,1,1],

0 commit comments

Comments
 (0)