2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2017-10-11 02:30:45 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
2018-02-08 06:57:34 +08:00
|
|
|
export default function handleMeetingDestruction({ body }) {
|
|
|
|
check(body, Object);
|
|
|
|
const { meetingId } = body;
|
2017-10-11 02:30:45 +08:00
|
|
|
check(meetingId, String);
|
|
|
|
|
|
|
|
return RedisPubSub.destroyMeetingQueue(meetingId);
|
|
|
|
}
|