Commit 0b58f476 authored by Tobias Steiner's avatar Tobias Steiner

Debug flab and conditional for sitemap

parent 0ea523b7
......@@ -27,6 +27,7 @@ class Extractor extends Transform {
console.log("Messages");
const data = JSON.parse(chunk.parsed.doc.res.body);
console.log(data);
try {
const res = {
id: data.data.id.toString(),
......
......@@ -46,7 +46,9 @@ kafka.init().then(async () => {
/**
* Generate sitemap of all resources
*/
new SitemapGenerator(magpieProducer);
if(core.getNconf().get('buildSitemap')) {
new SitemapGenerator(magpieProducer);
}
/**
* On data (flow mode) extract data from magpie and send them to the geolinker
......
Markdown is supported
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