Skip to content

Commit

Permalink
Update Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 7, 2023
1 parent 3a00b14 commit 572bbc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v2.5.0

- :rocket: Include 1 hour time cutoff

### v2.4.2

- :bug: Collection Timestamp fix
Expand Down
2 changes: 2 additions & 0 deletions task.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export default class Task extends ETL {
} else {
return true;
}
}).filter((plow) => {
return moment(Math.floor(plow.avl_location.source.collection_timestamp * 1000)).isAfter(moment().subtract(1, 'hour'));
}).map((plow) => {
const feat = {
id: plow.avl_location.vehicle.id + '_' + plow.avl_location.vehicle.id2,
Expand Down

0 comments on commit 572bbc5

Please sign in to comment.