Skip to content
Snippets Groups Projects
Commit fd563c25 authored by Anton Georgiev's avatar Anton Georgiev
Browse files

make default breakouts expiration time 15 mins, not 15 sec

parent fb6302fb
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@ import { check } from 'meteor/check';
import flat from 'flat';
export default function handleBreakoutRoomStarted({ body }, meetingId) {
const DEFAULT_TIME_REMAINING = 15 * 60; // 15 minutes default breakout time
const {
parentMeetingId,
breakout,
......@@ -11,8 +13,6 @@ export default function handleBreakoutRoomStarted({ body }, meetingId) {
const { breakoutId } = breakout;
const timeRemaining = 15;
check(meetingId, String);
const selector = {
......@@ -22,7 +22,7 @@ export default function handleBreakoutRoomStarted({ body }, meetingId) {
const modifier = {
$set: Object.assign(
{ users: [] },
{ timeRemaining: Number(timeRemaining) },
{ timeRemaining: DEFAULT_TIME_REMAINING },
{ parentMeetingId },
flat(breakout),
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment