Seed go-live fixes: drop unsupported transaction wrapper, fix header /hall link
+20 / −223 filesscreenshot pending
Files changed
- Mscripts/seed/refusals.ts+12 / −14
- Msrc/marketing/components/mobile-menu.tsx+4 / −4
- Msrc/marketing/components/nav.tsx+4 / −4
Diff
Lines reveal in sequence as you scroll. First 20 lines per file shown — expand for the rest.
scripts/seed/refusals.ts+12 / −14typescript| @@ -490,20 +490,18 @@ async function replaceCommitmentTies( | |
| ties: CommitmentTieSeed[], | |
| ): Promise<void> { | |
| const db = getDb(); | |
| − | await db.transaction(async (tx) => { |
| − | await tx |
| − | .delete(featureCommitments) |
| − | .where(eq(featureCommitments.featureId, featureId)); |
| − | if (ties.length === 0) return; |
| − | await tx.insert(featureCommitments).values( |
| − | ties.map((t) => ({ |
| − | featureId, |
| − | commitmentNumber: t.commitmentNumber, |
| − | stance: t.stance, |
| − | rationaleMd: redact(t.rationaleMd).redacted, |
| − | })), |
| − | ); |
| − | }); |
| + | await db |
| + | .delete(featureCommitments) |