bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/methods/userLogout.js
2017-06-19 10:13:35 -03:00

14 lines
332 B
JavaScript
Executable File

import Logger from '/imports/startup/server/logger';
import userLeaving from './userLeaving';
export default function userLogout(credentials) {
const { requesterUserId } = credentials;
try {
userLeaving(credentials, requesterUserId);
} catch (e) {
Logger.error(`Exception while executing userLeaving: ${e}`);
}
}