fix(base): stop jsonb char-key corruption in seed and guard view config spread

This commit is contained in:
Philipinho
2026-04-18 23:26:03 +01:00
parent a6e9e66bbd
commit 44ec2dbe88
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ async function createBase(workspaceId: string, spaceId: string, creatorId: strin
name: def.name,
type: def.type,
position: propPosition,
type_options: def.typeOptions ? JSON.stringify(def.typeOptions) : null,
type_options: def.typeOptions ?? null,
is_primary: def.isPrimary ?? false,
workspace_id: workspaceId,
created_at: new Date(),
@@ -219,7 +219,7 @@ async function createBase(workspaceId: string, spaceId: string, creatorId: strin
name: 'Table View 1',
type: 'table',
position: generateJitteredKeyBetween(null, null),
config: JSON.stringify({}),
config: {},
workspace_id: workspaceId,
creator_id: creatorId,
created_at: new Date(),