bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/server/handlers/updateTimeRemaining.js
Gabriel Carvalho de Campes 39dffd68b4 Update breakout rooms in html5
2016-11-14 09:57:10 -02:00

18 lines
458 B
JavaScript

import Breakouts from '/imports/api/breakouts';
import Logger from '/imports/startup/server/logger';
export default function updateTimeRemaining({ payload }) {
console.log('updateTimeRemaining', payload);
const selector = {
parentMeetingId: payload.meetingId,
};
const modifier = {
$set: {
timeRemaining: payload.timeRemaining,
},
};
Breakouts.update(selector, modifier, (err, numChanged) => console.log(err, numChanged));
}