Minor changes in fires union

This commit is contained in:
vjrj 2018-12-23 13:31:41 +01:00
parent c4cb52abaf
commit b9457fe141
3 changed files with 6 additions and 17 deletions

View file

@ -67,12 +67,14 @@ Meteor.publish('activefiresunionmyloc', function activeInMyLoc(northEastLng, nor
check(northEastLat, NumberBetween(-90, 90));
check(withMarks, Boolean);
if (!Meteor.isDevelopment) return this.ready(); // empty
// I use this for fire stats
// if (!Meteor.isDevelopment) return this.ready(); // empty
return activeFiresUnion(northEastLng, northEastLat, southWestLng, southWestLat, withMarks);
});
// Warning: this increase always by one the fire stats
Meteor.publish('lastFireUnionDetected', function lastFireDetected() {
if (!Meteor.isDevelopment) return this.ready(); // empty
// I use this for fire stats
// if (!Meteor.isDevelopment) return this.ready(); // empty
return ActiveFiresUnion.find({}, { limit: 1, sort: { when: -1 } });
});