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

14 lines
329 B
JavaScript
Raw Normal View History

2022-01-07 05:07:22 +08:00
import { check } from 'meteor/check';
import userLeftFlag from '../modifiers/userLeftFlagUpdated';
2022-01-07 05:07:22 +08:00
export default async function handleUserLeftFlag({ body }, meetingId) {
2022-01-07 05:07:22 +08:00
const user = body;
2022-04-05 01:26:00 +08:00
check(user, {
intId: String,
userLeftFlag: Boolean,
});
2022-01-07 05:07:22 +08:00
await userLeftFlag(meetingId, user.intId, user.userLeftFlag);
2022-01-07 05:07:22 +08:00
}