Commit 8834a622 authored by Audrey Hamelers's avatar Audrey Hamelers

#824 seeding

parent 84d1646c
Pipeline #13004 passed with stages
in 5 minutes and 30 seconds
This diff is collapsed.
......@@ -56,6 +56,7 @@ function sleep(ms) {
}
async function populateJournalTB() {
const beforeUpdate = Date.now()
try {
const [ftpXMLResult, pmcXMLResult] = await Promise.all([
processFTP(),
......@@ -68,7 +69,6 @@ async function populateJournalTB() {
f['meta,pmc_status'] = pmcStatus ? pmcStatus['meta,pmc_status'] : false
return f
})
const beforeUpdate = Date.now()
await Journal.upsertMulti(merged)
await sleep(3000)
logger.info(
......
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