bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/changeAway.js

12 lines
350 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import changeAway from '/imports/api/users/server/modifiers/changeAway';
export default async function handleAway(payload, meetingId) {
check(payload.body, Object);
check(meetingId, String);
const { userId: requesterUserId, away } = payload.body;
await changeAway(meetingId, requesterUserId, away);
}