2022-03-11 03:33:25 +08:00
|
|
|
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,
|
2022-03-30 22:01:12 +08:00
|
|
|
messageDescription: String,
|
2022-03-11 03:33:25 +08:00
|
|
|
messageValues: Array,
|
|
|
|
});
|
|
|
|
return emitNotification(body, 'NotifyUserInMeeting');
|
|
|
|
}
|