bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/changeAway.js
2023-06-07 22:10:07 -03:00

12 lines
350 B
JavaScript

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);
}