diff --git a/taxonium_backend/server.js b/taxonium_backend/server.js index 446a8edb..46e7eb7c 100644 --- a/taxonium_backend/server.js +++ b/taxonium_backend/server.js @@ -11,6 +11,7 @@ var xml2js = require("xml2js"); var axios = require("axios"); var pako = require("pako"); const URL = require("url").URL; +var jsonlParser= require("stream-json/jsonl/Parser").Parser const ReadableWebToNodeStream = require("readable-web-to-node-stream"); const { execSync } = require("child_process"); var importing; @@ -505,7 +506,8 @@ const loadData = async () => { processedData = await importing.processJsonl( supplied_object, logStatusMessage, - ReadableWebToNodeStream.ReadableWebToNodeStream + ReadableWebToNodeStream.ReadableWebToNodeStream, + jsonlParser ); logStatusMessage({