Browse Source

Fix misapplied arguments to multi commands

James Allen 10 years ago
parent
commit
c6605ed5f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/document-updater/app/coffee/RedisBackend.coffee

+ 1 - 1
services/document-updater/app/coffee/RedisBackend.coffee

@@ -92,7 +92,7 @@ for command, key_pos of COMMANDS
 				key = key_builder(client.key_schema)
 				key = key_builder(client.key_schema)
 				args_with_key = args.slice(0)
 				args_with_key = args.slice(0)
 				args_with_key[key_pos] = key
 				args_with_key[key_pos] = key
-				client.rclient[command] key, args...
+				client.rclient[command] args_with_key...
 
 
 compareResults = (results) ->
 compareResults = (results) ->
 	return if results.length < 2
 	return if results.length < 2