From 8e01d08a30ee1448b12ae7b25cac06d1c8cf346b Mon Sep 17 00:00:00 2001 From: Pierre Lehnen Date: Tue, 2 Jun 2020 18:09:01 -0300 Subject: [PATCH 1/2] [FIX] Some Login Buttons disappear after refreshing OAuth Services --- app/lib/server/methods/refreshOAuthService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/server/methods/refreshOAuthService.js b/app/lib/server/methods/refreshOAuthService.js index 234c5f377dfd..36c23927f3fa 100644 --- a/app/lib/server/methods/refreshOAuthService.js +++ b/app/lib/server/methods/refreshOAuthService.js @@ -16,6 +16,6 @@ Meteor.methods({ ServiceConfiguration.configurations.remove({}); - Settings.update({ _id: /^Accounts_OAuth_.+/ }, { $set: { _updatedAt: new Date() } }, { multi: true }); + Settings.update({ _id: /^((Accounts_OAuth_)|(SAML_)|(CAS_)|(Blockstack_)).+/ }, { $set: { _updatedAt: new Date() } }, { multi: true }); }, }); From eb0cf14a5ef7e8e3bad15a69b2cdb627be8dc245 Mon Sep 17 00:00:00 2001 From: pierre-lehnen-rc <55164754+pierre-lehnen-rc@users.noreply.github.com> Date: Fri, 12 Jun 2020 13:29:06 -0300 Subject: [PATCH 2/2] Update app/lib/server/methods/refreshOAuthService.js Co-authored-by: Diego Sampaio --- app/lib/server/methods/refreshOAuthService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/server/methods/refreshOAuthService.js b/app/lib/server/methods/refreshOAuthService.js index 36c23927f3fa..e0ef565cb45e 100644 --- a/app/lib/server/methods/refreshOAuthService.js +++ b/app/lib/server/methods/refreshOAuthService.js @@ -16,6 +16,6 @@ Meteor.methods({ ServiceConfiguration.configurations.remove({}); - Settings.update({ _id: /^((Accounts_OAuth_)|(SAML_)|(CAS_)|(Blockstack_)).+/ }, { $set: { _updatedAt: new Date() } }, { multi: true }); + Settings.update({ _id: /^(Accounts_OAuth_|SAML_|CAS_|Blockstack_).+/ }, { $set: { _updatedAt: new Date() } }, { multi: true }); }, });