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

Remove logs

parent 4b35ce0d
Pipeline #3077 passed with stage
in 2 minutes and 46 seconds
......@@ -53,15 +53,12 @@ export class ResponseCollector {
this.finalData.id = data.id;
// find key and add data
if(this.config.indexOf(data.name) > -1){
console.log(data.data);
// check if array
if(Array.isArray(data.data.links)) {
data.data.links = await Promise.all(data.data.links.map(async (d) => {
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 {
......@@ -70,15 +67,11 @@ export class ResponseCollector {
}
}));
}
console.log('data', 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('finalData', 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