15 lines
409 B
JavaScript
15 lines
409 B
JavaScript
|
import { check } from 'meteor/check';
|
||
|
import emitNotification from '/imports/api/meetings/server/modifiers/emitNotification';
|
||
|
|
||
|
export default function handleNotifyUserInMeeting({ body }) {
|
||
|
check(body, {
|
||
|
userId: String,
|
||
|
meetingId: String,
|
||
|
notificationType: String,
|
||
|
icon: String,
|
||
|
messageId: String,
|
||
|
messageValues: Array,
|
||
|
});
|
||
|
return emitNotification(body, 'NotifyUserInMeeting');
|
||
|
}
|