Bug fix
- Fixed: data not forwarded to backup nodes properly
This commit is contained in:
parent
121979b696
commit
f585a76e64
@ -35,12 +35,12 @@ module.exports = function Server(port) {
|
||||
console.debug("POST:", data);
|
||||
//process the all data request types
|
||||
client.processIncomingData(data).then(result => {
|
||||
res.end(JSON.stringify(result[0]));
|
||||
if (result[1]) {
|
||||
res.end(JSON.stringify(result[0])); //result[0] = full data
|
||||
if (result[1]) { //result[1] = mode (ie: DATA/TAG/NOTE)
|
||||
refresher.countdown;
|
||||
if (['DATA', 'TAG', 'NOTE'].includes(result[1]))
|
||||
sendToLiveRequests(result[0]);
|
||||
intra.forwardToNextNode(result[2], result[0]);
|
||||
intra.forwardToNextNode(result[1], result[0]);
|
||||
};
|
||||
}).catch(error => {
|
||||
if (error instanceof INVALID)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user