Fix timer for breakouts
This commit is contained in:
parent
655f8dd6d6
commit
1ba90598f6
@ -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));
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user