Skip to content

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

fix: unexpected word await

thecodrr9ba4f504096f
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.js
index f014079bc..a18eb023f 100644
--- a/packages/core/collections/attachments.js
+++ b/packages/core/collections/attachments.js
@@ -74,7 +74,7 @@ export default class Attachments extends Collection {
return this._collection.addItem(attachmentItem);
}
- delete(hash, noteId) {
+ async delete(hash, noteId) {
const attachment = this.all.find((a) => a.metadata.hash === hash);
if (!attachment || !deleteItem(attachment.noteIds, noteId)) return;
if (!attachment.noteIds.length) {