bigbluebutton-Github/bigbluebutton-html5/imports/api/group-chat/server/handlers/groupChats.js
2020-11-23 10:13:46 -03:00

12 lines
294 B
JavaScript

import { check } from 'meteor/check';
import addGroupChat from '../modifiers/addGroupChat';
export default function handleGroupChats({ body }, meetingId) {
const { chats } = body;
check(meetingId, String);
check(chats, Array);
chats.forEach(chat => addGroupChat(meetingId, chat));
}