From df66576f5917e0a65d4d668dca752285d0a18bba Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Mon, 30 Sep 2024 23:00:24 +0100 Subject: [PATCH] update backend --- taxonium_backend/server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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({