core: add missing audios attachments filter

This commit is contained in:
Ammar Ahmed
2024-05-01 18:03:26 +05:00
committed by Ammar Ahmed
parent 0e8a5ca1fa
commit 04f8be5a62

View File

@@ -460,6 +460,13 @@ export class Attachments implements ICollection {
);
}
get audios() {
return this.collection.createFilter<Attachment>(
(qb) => qb.where(isFalse("deleted")).where("mimeType", "like", `audio/%`),
this.db.options?.batchSize
);
}
get documents() {
return this.collection.createFilter<Attachment>(
(qb) =>