Skip to content
Snippets Groups Projects
Commit 000c11f6 authored by Jan Zak's avatar Jan Zak
Browse files

Fix forwarding points

parent 91ca110a
No related branches found
No related tags found
1 merge request!1Run all backend services with a single docker-compose.yml
......@@ -77,11 +77,13 @@ function sendPointStream(call) {
//Right now it doesnt fix cut off jsons (FIX LATER)
function sendDataStream(data,call){
var list = data.toString().split("\n")
var list = data.toString().trim().split("\n")
for(var i =1; i <list.length-2;i++){
for(var i =0; i <list.length;i++){
try {
var response = JSON.parse(list[i]);
call.write(response["point"]);
} catch (e) {}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment