Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit bc5a1de

Browse files
committed
server: Fix import when no meta (closes #281)
1 parent 89314fa commit bc5a1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/import/zip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
457457
}
458458

459459
let { mime } = noteMeta ? noteMeta : detectFileTypeAndMime(taskContext, filePath);
460-
if (!mime) {
460+
if (mime == null) {
461461
throw new Error("Unable to resolve mime type.");
462462
}
463463

0 commit comments

Comments
 (0)