diff options
Diffstat (limited to 'src/server/api/endpoints/admin')
| -rw-r--r-- | src/server/api/endpoints/admin/drive/files.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/admin/drive/files.ts b/src/server/api/endpoints/admin/drive/files.ts index 776aec9ec6..c5a91db854 100644 --- a/src/server/api/endpoints/admin/drive/files.ts +++ b/src/server/api/endpoints/admin/drive/files.ts @@ -51,8 +51,8 @@ const sort: any = { // < https://github.com/Microsoft/TypeScript/issues/1863 export default define(meta, async (ps, me) => { const q = {} as any; - if (ps.origin == 'local') q['userHost'] = null; - if (ps.origin == 'remote') q['userHost'] = { $ne: null }; + if (ps.origin === 'local') q['userHost'] = null; + if (ps.origin === 'remote') q['userHost'] = { $ne: null }; const files = await DriveFiles.find({ where: q, |