bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/methods/userLogout.js

14 lines
332 B
JavaScript
Raw Normal View History

2017-06-19 21:13:35 +08:00
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}`);
}
}