fix: Add editorVersion field for document visibility
Documents without editorVersion='15.0.0' return "Not found" in Outline. This was the missing field causing MCP-created documents to fail. - Added editorVersion column to INSERT statement - Set to '15.0.0' (current Outline editor version) - v1.3.17 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -248,13 +248,14 @@ const createDocument: BaseTool<CreateDocumentArgs> = {
|
||||
INSERT INTO documents (
|
||||
id, "urlId", title, text, "collectionId", "teamId", "parentDocumentId", "createdById",
|
||||
"lastModifiedById", template, "publishedAt", "createdAt", "updatedAt", version,
|
||||
"isWelcome", "fullWidth", "insightsEnabled", "collaboratorIds", "revisionCount", content
|
||||
"isWelcome", "fullWidth", "insightsEnabled", "collaboratorIds", "revisionCount", content,
|
||||
"editorVersion"
|
||||
)
|
||||
VALUES (
|
||||
gen_random_uuid(),
|
||||
substring(md5(random()::text) from 1 for 10),
|
||||
$1, $2, $3, $4, $5, $6, $7, $8, $9, NOW(), NOW(), 1, false, false, false, ARRAY[$6]::uuid[],
|
||||
1, $10::jsonb
|
||||
1, $10::jsonb, '15.0.0'
|
||||
)
|
||||
RETURNING id, "urlId", title, "collectionId", "publishedAt", "createdAt"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user