refactor: Use ===
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user