From 1ac65fff4735dd1bf4bf111e683e71e98e835411 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 11 Apr 2024 19:49:01 +0300 Subject: [PATCH] server-ts: Address requested changes --- src/services/export/single.ts | 2 +- src/services/export/zip.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/export/single.ts b/src/services/export/single.ts index f4ac58692..b0f46e6e8 100644 --- a/src/services/export/single.ts +++ b/src/services/export/single.ts @@ -24,7 +24,7 @@ function exportSingleNote(taskContext: TaskContext, branch: BBranch, format: "ht let content = note.getContent(); if (typeof content !== "string") { - throw new Error("Unsupported context type for export."); + throw new Error("Unsupported content type for export."); } if (note.type === 'text') { diff --git a/src/services/export/zip.ts b/src/services/export/zip.ts index 9d369e593..b4093c848 100644 --- a/src/services/export/zip.ts +++ b/src/services/export/zip.ts @@ -142,7 +142,7 @@ async function exportToZip(taskContext: TaskContext, branch: BBranch, format: "h meta.type = note.type; meta.mime = note.mime; meta.attributes = note.getOwnedAttributes().map(attribute => { - const attrMeta = { + const attrMeta: AttributeMeta = { type: attribute.type, name: attribute.name, value: attribute.value,