Fix timer for breakouts

This commit is contained in:
gcampes 2016-11-23 14:13:41 -02:00
parent 655f8dd6d6
commit 1ba90598f6
2 changed files with 6 additions and 5 deletions

View File

@ -21,5 +21,10 @@ export default function updateTimeRemaining({ payload }) {
},
};
return Breakouts.update(selector, modifier);
const options = {
multi: true,
};
console.log('found', Breakouts.find(selector).fetch().length);
return Breakouts.update(selector, modifier, options, (err, num) => console.log('updated', err, num));
}

View File

@ -6,8 +6,6 @@ import _ from 'underscore';
import NavBarService from '../nav-bar/service';
import Auth from '/imports/ui/services/auth';
import Breakouts from '/imports/api/breakouts';
import NotificationsBar from './component';
const humanizeSeconds = time => {
@ -140,8 +138,6 @@ export default injectIntl(createContainer(({ intl }) => {
const { status, connected, retryCount, retryTime } = Meteor.status();
let data = {};
window.Breakouts = Breakouts;
if (!connected) {
data.color = 'primary';
switch (status) {