13 lines
295 B
JavaScript
13 lines
295 B
JavaScript
import { check } from 'meteor/check';
|
|
import addUser from '../modifiers/addUser';
|
|
|
|
export default function handleUserJoined({ header, body }) {
|
|
const meetingId = header.meetingId;
|
|
const user = body;
|
|
|
|
check(meetingId, String);
|
|
check(user, Object);
|
|
|
|
return addUser(meetingId, user);
|
|
}
|