From 11ea0cf692b72d34941331dfff1ca8f923be0347 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 19 Sep 2026 22:25:39 +0100 Subject: [PATCH] fix: set $type on publication basicTheme --- modules/sync/providers/standard-site.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/sync/providers/standard-site.ts b/modules/sync/providers/standard-site.ts index 717c334e..47a3be4b 100644 --- a/modules/sync/providers/standard-site.ts +++ b/modules/sync/providers/standard-site.ts @@ -51,7 +51,12 @@ export class StandardSiteProvider implements SyncProvider { const icon = await resolvePublicationIcon(client) if (icon) publication.icon = icon - await client.putRecord(publication as LexMap & { $type: 'site.standard.publication' }, publicationRkey) + try { + await client.putRecord(publication as LexMap & { $type: 'site.standard.publication' }, publicationRkey) + } + catch (error) { + console.warn('[sync:standard-site] Failed to update publication record:', error instanceof Error ? error.message : error) + } // Delete legacy 'self' rkey publication record if it exists try { @@ -129,6 +134,7 @@ const rgb = (r: number, g: number, b: number) => ({ $type: 'site.standard.theme. /** Light-mode palette from `app/assets/main.css`. */ const basicTheme = { + $type: 'site.standard.theme.basic', background: rgb(229, 231, 235), foreground: rgb(31, 41, 55), accent: rgb(31, 41, 55), -- 2.51.2