Browse Source

Initialize primaryResult to an array, not null

James Allen 10 năm trước cách đây
mục cha
commit
edf1e1ab49

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

@@ -124,7 +124,7 @@ for command, key_pos of COMMANDS
 	do (command, key_pos) ->
 	do (command, key_pos) ->
 		Client.prototype[command] = (args..., callback) ->
 		Client.prototype[command] = (args..., callback) ->
 			primaryError = null
 			primaryError = null
-			primaryResult = null
+			primaryResult = []
 			jobs = @clients.map (client) =>
 			jobs = @clients.map (client) =>
 				(cb) =>
 				(cb) =>
 					cb = _.once(cb)
 					cb = _.once(cb)