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
......@@ -30,7 +30,7 @@ export async function addNewBlocks(server: Server, wwDAL: WotWizardDAL) {
await Promise.all(blocksSaved)
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)
const legacies = iindexRows.map(f => { (f as any).legacy = false; return f })
......
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