Skip to content

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

fix: noteId is not defined

thecodrr6eb625c8eb3a
diff --git a/packages/core/content-types/tiny.js b/packages/core/content-types/tiny.js
index acda87df3..d8482ab3a 100644
--- a/packages/core/content-types/tiny.js
+++ b/packages/core/content-types/tiny.js
@@ -101,7 +101,7 @@ class Tiny {
const type =
getDatasetAttribute(attachment, "mime") || mime || "image/jpeg";
- const { key, metadata } = await store(noteId, data, "base64");
+ const { key, metadata } = await store(data, "base64");
setDatasetAttribute(attachment, "hash", metadata.hash);
attachments.push({