Last fire detected

This commit is contained in:
vjrj 2018-03-22 16:38:27 +01:00
parent b794538ed2
commit 452f6baf45
4 changed files with 21 additions and 3 deletions

View file

@ -58,3 +58,7 @@ Meteor.publish('activefiresmyloc', function activeInMyLoc(northEastLng, northEas
return activefires(northEastLng, northEastLat, southWestLng, southWestLat, withMarks);
});
Meteor.publish('lastFireDetected', function lastFireDetected() {
return ActiveFires.find({}, { limit: 1, sort: { when: -1 } });
});