Merge branch 'beta'

# Conflicts:
#	package-lock.json
This commit is contained in:
zadam
2023-09-14 00:19:19 +02:00
21 changed files with 244 additions and 248 deletions

View File

@@ -255,6 +255,12 @@ class FNote {
return this.attachments;
}
/** @returns {Promise<FAttachment[]>} */
async getAttachmentsByRole(role) {
return (await this.getAttachments())
.filter(attachment => attachment.role === role);
}
/** @returns {Promise<FAttachment>} */
async getAttachmentById(attachmentId) {
const attachments = await this.getAttachments();