ohif-viewer/Packages/ohif-study-list/both/lib/getCurrentServer.js

16 lines
410 B
JavaScript
Raw Normal View History

import { CurrentServer, Servers } from 'meteor/ohif:study-list/both/collections.js';
/**
* Retrieves the current server configuration used to retrieve studies
*/
getCurrentServer = () => {
const currentServer = CurrentServer.findOne();
if (!currentServer) {
return;
}
const serverConfiguration = Servers.findOne({ _id: currentServer.serverId });
return serverConfiguration;
};