lilith-platform.live/codebase
Natalie 41b602f444 fix(comm-newsletter): typed row mappers for campaign DB rows
campaigns.ts asserted node:sqlite rows (Record<string, SQLOutputValue>) directly
to CampaignRow/CampaignListItem (TS2352 — non-overlapping types). Added
mapCampaignRow/mapCampaignListItem in db.ts that coerce each column (handling
bigint-for-int and nullable text) and use them at all 6 sites, preserving the
null/undefined handling. Real coercion instead of structural casts.

Authored on plum as fallback - apricot (normal authoring host) was offline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 05:53:32 -05:00
..
@features fix(comm-newsletter): typed row mappers for campaign DB rows 2026-06-19 05:53:32 -05:00
@packages fix(i18n): declare i18next dep and add 'escort' to UserType 2026-06-19 05:53:02 -05:00
config.yaml
package.json
tsconfig.base.json