Commit be99b428 authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Add debug flags

parent 0ec77fbe
Pipeline #3000 passed with stage
in 2 minutes and 42 seconds
......@@ -195,7 +195,7 @@ export class ApiController {
clearTimeout(unsubscribeTimer);
}
// wait for kafka to answer
kafkaEventEmitter.on(`data-${id}`, await waitForResponse);
kafkaEventEmitter.on(`data-${id}`, waitForResponse);
// a bit hackish but we need to unsubscribe from the event if no answer from kafka arrives
// todo: perhaps a different unsubscribeTimeout
......
......@@ -59,6 +59,8 @@ export class ResponseCollector {
const a = {};
try {
const provider = await UrlResolver.getProvider(d, this.language);
console.log('provider ' + provider);
console.log('url ' + d);
a[provider] = d;
return a;
} catch {
......@@ -67,12 +69,15 @@ export class ResponseCollector {
}
});
}
console.log(data);
if(Array.isArray(this.finalData.data[data.name])) {
this.finalData.data[data.name].push(data.data);
} else {
this.finalData.data[data.name] = data.data;
}
console.log(this.finalData);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment