Skip to content
Snippets Groups Projects
Commit 3ff4894d authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] WW: do not insert i_index records without uit

parent 5db8a424
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ export async function addNewBlocks(server: Server, wwDAL: WotWizardDAL) { ...@@ -30,7 +30,7 @@ export async function addNewBlocks(server: Server, wwDAL: WotWizardDAL) {
await Promise.all(blocksSaved) await Promise.all(blocksSaved)
const iindexRows = (await server.dal.iindexDAL.findRawWithOrder({}, [['writtenOn', false], ['wotb_id', false]])) const iindexRows = (await server.dal.iindexDAL.findRawWithOrder({}, [['writtenOn', false], ['wotb_id', false]]))
.filter(r => r.writtenOn >= start) .filter(r => r.writtenOn >= start && r.uid)
logger.debug('Saving %s iindex rows...', iindexRows.length) logger.debug('Saving %s iindex rows...', iindexRows.length)
const legacies = iindexRows.map(f => { (f as any).legacy = false; return f }) const legacies = iindexRows.map(f => { (f as any).legacy = false; return f })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment