bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/meetingDestruction.js
2016-10-21 16:27:47 +00:00

12 lines
320 B
JavaScript

import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
import removeMeeting from '../modifiers/removeMeeting';
export default function handleMeetingDestruction({ payload }) {
const meetingId = payload.meeting_id;
check(meetingId, String);
return removeMeeting(meetingId);
};