Run stats job after removing points without coordinates

This commit is contained in:
Eugene Burmakin 2024-06-10 22:47:45 +02:00
parent 045999b292
commit b027c1a5e0
2 changed files with 6 additions and 0 deletions

View file

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.5.3] — 2024-06-10
### Added
- A data migration to remove points with 0.0, 0.0 coordinates. This is necessary to prevent errors when calculating distance in Stats page.
### Fixed
- Reworked code responsible for importing "Records.json" file from Google Takeout. Now it is more reliable and faster, and should not throw as many errors as before.

View file

@ -11,6 +11,8 @@ class RemovePointsWithoutCoordinates < ActiveRecord::Migration[7.1]
.each(&:destroy)
Rails.logger.info 'Points without coordinates removed.'
StatCreatingJob.perform_later(User.pluck(:id))
end
def down