bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/index.js
2021-10-04 17:01:20 -03:00

14 lines
356 B
JavaScript

import { Meteor } from 'meteor/meteor';
const Polls = new Mongo.Collection('polls');
export const CurrentPoll = new Mongo.Collection('current-poll');
if (Meteor.isServer) {
// We can have just one active poll per meeting
// makes no sense to index it by anything other than meetingId
Polls._ensureIndex({ meetingId: 1 });
}
export default Polls;