mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
refactor(server): convert to switch
This commit is contained in:
@@ -656,11 +656,12 @@ export function readZipFile(buffer: Buffer, processEntryCallback: (zipfile: yauz
|
|||||||
|
|
||||||
function resolveNoteType(type: string | undefined): NoteType {
|
function resolveNoteType(type: string | undefined): NoteType {
|
||||||
// BC for ZIPs created in Trilium 0.57 and older
|
// BC for ZIPs created in Trilium 0.57 and older
|
||||||
if (type === "relation-map") {
|
switch (type) {
|
||||||
|
case "relation-map":
|
||||||
return "relationMap";
|
return "relationMap";
|
||||||
} else if (type === "note-map") {
|
case "note-map":
|
||||||
return "noteMap";
|
return "noteMap";
|
||||||
} else if (type === "web-view") {
|
case "web-view":
|
||||||
return "webView";
|
return "webView";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user