14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
import { check } from 'meteor/check';
|
|
|
|
import userLeftFlag from '../modifiers/userLeftFlagUpdated';
|
|
|
|
export default async function handleUserLeftFlag({ body }, meetingId) {
|
|
const user = body;
|
|
check(user, {
|
|
intId: String,
|
|
userLeftFlag: Boolean,
|
|
});
|
|
|
|
await userLeftFlag(meetingId, user.intId, user.userLeftFlag);
|
|
}
|