From 04f8be5a6247e557aa5a64fa07e8b9d010a4d0ee Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Wed, 1 May 2024 18:03:26 +0500 Subject: [PATCH] core: add missing audios attachments filter --- packages/core/src/collections/attachments.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/core/src/collections/attachments.ts b/packages/core/src/collections/attachments.ts index d7c536cdf..986e39d06 100644 --- a/packages/core/src/collections/attachments.ts +++ b/packages/core/src/collections/attachments.ts @@ -460,6 +460,13 @@ export class Attachments implements ICollection { ); } + get audios() { + return this.collection.createFilter( + (qb) => qb.where(isFalse("deleted")).where("mimeType", "like", `audio/%`), + this.db.options?.batchSize + ); + } + get documents() { return this.collection.createFilter( (qb) =>