bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/meetingDestruction.js

15 lines
432 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2017-10-11 02:30:45 +08:00
import { check } from 'meteor/check';
import destroyExternalVideo from '/imports/api/external-videos/server/methods/destroyExternalVideo';
export default function handleMeetingDestruction({ body }) {
check(body, Object);
const { meetingId } = body;
2017-10-11 02:30:45 +08:00
check(meetingId, String);
destroyExternalVideo(meetingId);
2017-10-11 02:30:45 +08:00
return RedisPubSub.destroyMeetingQueue(meetingId);
}