bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/handleNotifyRoleInMeeting.js
2022-03-30 11:01:12 -03:00

16 lines
439 B
JavaScript

import { check } from 'meteor/check';
import emitNotification from '/imports/api/meetings/server/modifiers/emitNotification';
export default function handleNotifyRoleInMeeting({ body }) {
check(body, {
role: String,
meetingId: String,
notificationType: String,
icon: String,
messageId: String,
messageDescription: String,
messageValues: Array,
});
return emitNotification(body, 'NotifyRoleInMeeting');
}