2017-06-19 21:13:35 +08:00
|
|
|
import { check } from 'meteor/check';
|
2017-07-28 21:43:39 +08:00
|
|
|
|
2017-06-19 21:13:35 +08:00
|
|
|
import addUser from '../modifiers/addUser';
|
|
|
|
|
2017-06-29 21:09:11 +08:00
|
|
|
export default function handleUserJoined({ body }, meetingId) {
|
2017-06-22 00:54:04 +08:00
|
|
|
const user = body;
|
2017-06-19 21:13:35 +08:00
|
|
|
check(user, Object);
|
|
|
|
|
2017-08-03 20:36:26 +08:00
|
|
|
return addUser(meetingId, user);
|
2017-06-19 21:13:35 +08:00
|
|
|
}
|