bigbluebutton-Github/bigbluebutton-html5/imports/api/guest-users/server/publishers.js
2019-02-26 14:08:15 -03:00

24 lines
666 B
JavaScript

import GuestUsers from '/imports/api/guest-users/';
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
function guestUsers(credentials) {
const { meetingId, requesterUserId, requesterToken } = credentials;
check(meetingId, String);
check(requesterUserId, String);
check(requesterToken, String);
Logger.info(`Publishing Slides for ${meetingId} ${requesterUserId} ${requesterToken}`);
return GuestUsers.find({ meetingId });
}
function publish(...args) {
const boundSlides = guestUsers.bind(this);
return boundSlides(...args);
}
Meteor.publish('guestUser', publish);