Chore: Use projection instead of fields to avoid error log (#22629)

pull/22613/head^2
Kevin Aleman 5 years ago committed by GitHub
parent f8e136bdb8
commit 350fa30cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/server/raw/Users.js

@ -144,7 +144,7 @@ export class UsersRaw extends BaseRaw {
roles: roleName,
};
return this.findOne(query, { fields: { roles: 1 } });
return this.findOne(query, { projection: { roles: 1 } });
}
getDistinctFederationDomains() {

Loading…
Cancel
Save