mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -206,7 +206,7 @@ module.exports = function(RED) { | ||||
|                                 } | ||||
|                             }); | ||||
|                         } else if (node.operation === "aggregate") { | ||||
|                             msg.payload = (msg.payload instanceof Array) ? msg.payload : []; | ||||
|                             msg.payload = (Array.isArray(msg.payload)) ? msg.payload : []; | ||||
|                             coll.aggregate(msg.payload, function(err, result) { | ||||
|                                 if (err) { | ||||
|                                     node.error(err); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user