2017-06-19 21:13:35 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import addUser from '../modifiers/addUser';
|
|
|
|
|
2017-06-22 00:54:04 +08:00
|
|
|
export default function handleUserJoined({ header, body }) {
|
2017-06-27 20:40:28 +08:00
|
|
|
const { meetingId } = header;
|
2017-06-22 00:54:04 +08:00
|
|
|
const user = body;
|
2017-06-28 23:33:03 +08:00
|
|
|
|
2017-06-19 21:13:35 +08:00
|
|
|
check(meetingId, String);
|
|
|
|
check(user, Object);
|
|
|
|
|
|
|
|
return addUser(meetingId, user);
|
|
|
|
}
|