fix: download media before note export

This commit is contained in:
thecodrr
2021-10-22 11:52:56 +05:00
parent ecf716039c
commit 850259c6fb
4 changed files with 31 additions and 22 deletions

View File

@@ -68,7 +68,8 @@ class Monographs {
const content = await this._db.content.downloadMedia(
`monograph-${noteId}`,
await this._db.content.raw(note.data.contentId)
await this._db.content.raw(note.data.contentId),
false
);
if (!content) throw new Error("This note has no content.");