diff --git a/.app_version b/.app_version index 85b7c695..c81aa44a 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.9.6 +0.9.7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 38948f58..77d2a856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.9.7] — 2024-07-27 + +### Fixed + +- Name of backgroun job to calculate visits + +--- + ## [0.9.6] — 2024-07-27 ### Fixed diff --git a/app/controllers/visits_controller.rb b/app/controllers/visits_controller.rb index 02a9009d..01d443f8 100644 --- a/app/controllers/visits_controller.rb +++ b/app/controllers/visits_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class VisitsController < ApplicationController - before_action + before_action :authenticate_user! before_action :set_visit, only: %i[update] def index diff --git a/app/jobs/area_visits_calculating_job.rb b/app/jobs/area_visits_calculating_job.rb index 9ad5f314..adb6ec53 100644 --- a/app/jobs/area_visits_calculating_job.rb +++ b/app/jobs/area_visits_calculating_job.rb @@ -7,6 +7,6 @@ class AreaVisitsCalculatingJob < ApplicationJob user = User.find(user_id) areas = user.areas - Visits::Areas::Calculate(user, areas).call + Areas::Visits::Create(user, areas).call end end diff --git a/app/views/imports/index.html.erb b/app/views/imports/index.html.erb index b37f69b6..dd4ebfe7 100644 --- a/app/views/imports/index.html.erb +++ b/app/views/imports/index.html.erb @@ -13,7 +13,7 @@
- Here you'll find your imports, But now there are none. Let's <%= link_to 'create one', new_import_path, class: 'link' %>! + Here you'll find your imports, but now there are none. Let's <%= link_to 'create one', new_import_path, class: 'link' %>!
+ Here you'll find your visits, but now there are none. Create some areas on your map and pretty soon you'll see visit suggestions on this page! +
+