bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/index.js
2017-09-07 16:41:03 -07:00

13 lines
293 B
JavaScript

import { Meteor } from 'meteor/meteor';
const Polls = new Mongo.Collection('polls2x');
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;