Chore: Improve watch OAuth settings logic (#23505)

pull/23523/head
Guilherme Gazzo 4 years ago committed by GitHub
parent 866821e688
commit 846735419e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lib/server/startup/oAuthServicesUpdate.js

@ -11,7 +11,7 @@ const logger = new Logger('rocketchat:lib');
function _OAuthServicesUpdate() {
const services = settings.getByRegexp(/^(Accounts_OAuth_|Accounts_OAuth_Custom-)[a-z0-9_]+$/i);
services.forEach(([key, value]) => {
services.filter(([, value]) => typeof value === 'boolean').forEach(([key, value]) => {
logger.debug({ oauth_updated: key });
let serviceName = key.replace('Accounts_OAuth_', '');
if (serviceName === 'Meteor') {

Loading…
Cancel
Save