Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: use renamed "read" fn instead of "get"

thecodrrf419479340fc
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.js
index ffcf7fb0f..7af692487 100644
--- a/packages/core/collections/attachments.js
+++ b/packages/core/collections/attachments.js
@@ -147,7 +147,7 @@ export default class Attachments extends Collection {
const isDownloaded = await this._db.fs.downloadFile(noteId, hash);
if (!isDownloaded) continue;
- const attachment = await this.get(hash);
+ const attachment = await this.read(hash);
if (!attachment) continue;
EV.publish(EVENTS.mediaAttachmentDownloaded, {