server-ts: Address requested changes

This commit is contained in:
Elian Doran 2024-04-11 19:49:01 +03:00
parent a154dc76ce
commit 1ac65fff47
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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') {

View File

@ -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,