summaryrefslogtreecommitdiff
path: root/app/controllers/game_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-26 19:57:32 -0400
committerDavid Gay <david@davidgay.org>2021-05-26 19:57:32 -0400
commit502ce07cc521802920ca26ebc7eadab6c119bebd (patch)
treeba3501bf190e98162eaefd57a70707cc0b2adeb8 /app/controllers/game_controller.rb
parent629542aa0e3ad63ea1426571cb7dcae6e5da973d (diff)
Fix bug where `activity_started_at` was not updating on cyclic/infinite activities
Diffstat (limited to 'app/controllers/game_controller.rb')
-rw-r--r--app/controllers/game_controller.rb2
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