initial implementation of note attachments

This commit is contained in:
zadam
2023-01-22 23:36:05 +01:00
parent 6a6ae359b6
commit 339d8a7378
20 changed files with 2447 additions and 233 deletions

View File

@@ -106,7 +106,7 @@ class BNoteRevision extends AbstractBeccaEntity {
}
}
setContent(content, ignoreMissingProtectedSession = false) {
setContent(content) {
const pojo = {
noteRevisionId: this.noteRevisionId,
content: content,
@@ -117,7 +117,7 @@ class BNoteRevision extends AbstractBeccaEntity {
if (protectedSessionService.isProtectedSessionAvailable()) {
pojo.content = protectedSessionService.encrypt(pojo.content);
}
else if (!ignoreMissingProtectedSession) {
else {
throw new Error(`Cannot update content of noteRevisionId=${this.noteRevisionId} since we're out of protected session.`);
}
}