summaryrefslogtreecommitdiff
path: root/src/api/endpoints/drive
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/drive')
-rw-r--r--src/api/endpoints/drive/stream.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/api/endpoints/drive/stream.ts b/src/api/endpoints/drive/stream.ts
index 32f7ac7e0a..58e7d11678 100644
--- a/src/api/endpoints/drive/stream.ts
+++ b/src/api/endpoints/drive/stream.ts
@@ -52,15 +52,12 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
};
}
if (type) {
- query.type = new RegExp(`^${type.replace(/\*/g, '.+?')}$`);
+ query.contentType = new RegExp(`^${type.replace(/\*/g, '.+?')}$`);
}
// Issue query
const files = await DriveFile
.find(query, {
- fields: {
- data: false
- },
limit: limit,
sort: sort
});