mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix split to pass tests...
This commit is contained in:
parent
55110dfbac
commit
e70766a535
@ -416,7 +416,9 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
// TODO: currently reuse the last received - add option to pick first received
|
// TODO: currently reuse the last received - add option to pick first received
|
||||||
group.msg = msg;
|
group.msg = msg;
|
||||||
if (group.currentCount >= (group.targetCount || msg.parts.count) || msg.hasOwnProperty('complete')) {
|
var tcnt = group.targetCount;
|
||||||
|
if (msg.hasOwnProperty("parts")) { tcnt = group.targetCount || msg.parts.count; }
|
||||||
|
if (group.currentCount >= tcnt || msg.hasOwnProperty('complete')) {
|
||||||
completeSend(partId);
|
completeSend(partId);
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user