14 lines
332 B
JavaScript
Executable File
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}`);
|
|
}
|
|
}
|