Skip to content

Commit

Permalink
fix: file type filter not working on room's file list (#31228)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Dec 13, 2023
1 parent ac6f68c commit 097f64b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-pears-cry.md
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixed the filter for file type in the list of room files
2 changes: 1 addition & 1 deletion apps/meteor/server/models/raw/Uploads.ts
Expand Up @@ -50,9 +50,9 @@ export class UploadsRaw extends BaseUploadModelRaw implements IUploadsModel {
findPaginatedWithoutThumbs(query: Filter<IUpload> = {}, options?: FindOptions<IUpload>): FindPaginated<FindCursor<WithId<IUpload>>> {
return this.findPaginated(
{
typeGroup: { $ne: 'thumb' },
...query,
_hidden: { $ne: true },
typeGroup: { $ne: 'thumb' },
},
options,
);
Expand Down

0 comments on commit 097f64b

Please sign in to comment.