From 502ce07cc521802920ca26ebc7eadab6c119bebd Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 19:57:32 -0400 Subject: Fix bug where `activity_started_at` was not updating on cyclic/infinite activities --- app/controllers/game_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index 922301a..de9fcd6 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -112,7 +112,7 @@ class GameController < ApplicationController @results.push({ type: "message", body: "You have finished your work." }) end else - current_char.activity_started_at = Time.now + current_char.update(activity_started_at: Time.now) end end rescue ItemQuantityError -- cgit v1.2.3