A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: allow single attachment to be queried by hash
thecodrr9cdd1e562edf
diff --git a/packages/core/collections/attachments.js b/packages/core/collections/attachments.jsindex 472ba4f4c..cd91a2080 100644--- a/packages/core/collections/attachments.js+++ b/packages/core/collections/attachments.js@@ -118,8 +118,8 @@ export default class Attachments extends Collection {return { data, ...attachment };}- async attachment(id) {- return this.all.find((a) => a.id === id);+ attachment(hashOrId) {+ return this.all.find((a) => a.id === hashOrId || a.hash === hashOrId);}markAsUploaded(id) {