13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import { ServiceConfiguration } from 'meteor/service-configuration';
|
|
|
|
const OAuthSettings = Meteor.settings.private.OAuth;
|
|
|
|
if (OAuthSettings) {
|
|
Object.keys(OAuthSettings).forEach((service) => {
|
|
ServiceConfiguration.configurations.upsert(
|
|
{ service },
|
|
{ $set: OAuthSettings[service] },
|
|
);
|
|
});
|
|
}
|