2022-01-07 05:07:22 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
2022-02-17 02:46:02 +08:00
|
|
|
import userLeftFlag from '../modifiers/userLeftFlagUpdated';
|
2022-01-07 05:07:22 +08:00
|
|
|
|
|
|
|
export default function handleUserLeftFlag({ body }, meetingId) {
|
|
|
|
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
|
|
|
|
|
|
|
userLeftFlag(meetingId, user.intId, user.userLeftFlag);
|
|
|
|
}
|