Skip empty room names in topic index backfill

A historical rooms record with an empty room name made the backfill call
put('') and abort with "key cannot be an empty String". Skip records with no
room name so the one-time backfill can complete; such rooms have no listing
entry to write.

By specifier.
This commit is contained in:
Chris Troutner
2026-09-17 12:44:57 -07:00
parent c1a07cbd9d
commit 6ef2e3589e
@@ -47,6 +47,7 @@ async function collectSummaries (roomsDb) {
for await (const [key, value] of roomsDb.iterator()) {
const room = roomFromEntry(key, value)
if (!room) continue
if (!summaries.has(room)) {
summaries.set(room, { room, postCount: 0, lastHeight: 0 })
}