mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: add missing audios attachments filter
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user