fix: invalid query.

This commit is contained in:
Darshan committed 2025-04-30 11:13:29 +05:30
1 parent e0d93a0cd9
commit 346b2c9969
1 file changed
+1 -1
+1 -1
View File
@@ -140,7 +140,7 @@
if (allowedExtension === '*') {
query.push(Query.startsWith('mimeType', mimeTypeQuery));
} else {
Query.endsWith('name', `.${allowedExtension}`);
query.push(Query.endsWith('name', `.${allowedExtension}`));
}
return query;