diff options
author | David Gay <david@davidgay.org> | 2021-05-26 19:57:32 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 19:57:32 -0400 |
commit | 502ce07cc521802920ca26ebc7eadab6c119bebd (patch) | |
tree | ba3501bf190e98162eaefd57a70707cc0b2adeb8 /app/controllers | |
parent | 629542aa0e3ad63ea1426571cb7dcae6e5da973d (diff) |
Fix bug where `activity_started_at` was not updating on cyclic/infinite activities
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/game_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |