From b7176d0c42aa94dfed1b51c68360da5cf418befb Mon Sep 17 00:00:00 2001 From: Thomas Jung Date: Fri, 4 Sep 2026 16:08:42 -0400 Subject: [PATCH] fix(channels): mark canonical slug lookup in seed-collections to unbreak unit-tests guard draftCollections() already lowercases d.slug at source, so the SELECT.one.where({ slug: d.slug }) lookup is write-path-canonical. Add the slug-canonical marker so check-slug-lookups.ts passes (it was failing the 'unit tests' CI job after PR #2151). --- srv/lib/channels/seed-collections.js | 1 + 1 file changed, 1 insertion(+) diff --git a/srv/lib/channels/seed-collections.js b/srv/lib/channels/seed-collections.js index fa49ad4aa..dd2c25a85 100644 --- a/srv/lib/channels/seed-collections.js +++ b/srv/lib/channels/seed-collections.js @@ -75,6 +75,7 @@ async function seedCollections(db, { commit = false, llm } = {}) { let created = 0, updatedDraft = 0, skippedReviewed = 0; for (const d of drafts) { + // slug-canonical: write-path-canonicalizes — draftCollections() lowercases d.slug at source const existing = await db.run(SELECT.one.from(ChannelCollections).where({ slug: d.slug })); if (existing && existing.authoringStatus === 'REVIEWED') { skippedReviewed++; continue; } if (!commit) { existing ? updatedDraft++ : created++; continue; }