ohif-viewer/Packages/ohif-study-list/server/validateServerConfiguration.js

17 lines
507 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import { ServerConfiguration } from '../both/schema/servers.js';
2016-09-22 16:45:07 +02:00
/*
-- Taking this out for now to prevent confusion.
TODO: Make the error messages more clear
Meteor.startup(() => {
console.log('------ Testing Meteor Settings ------');
let config = ServerConfiguration.clean(Meteor.settings);
console.log(JSON.stringify(config, null, 2));
Meteor.settings = config;
check(config, ServerConfiguration);
2016-09-22 16:45:07 +02:00
});*/