diff options
author | David Gay <david@davidgay.org> | 2021-06-14 10:21:44 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-14 10:21:44 -0400 |
commit | 007896b0057b8aecbf74dddd269b57efe3f6e0e6 (patch) | |
tree | 5006a789884a0761bafc6d8b85084ccb1f3ac974 /app | |
parent | 26af87dd6bfa1f45d35025e69f0bf533707c70cc (diff) |
Fix bug with activity title awarding
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/activity_processor.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index b5dd11c..4a06a98 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -166,7 +166,8 @@ class ActivityProcessor end def handle_title_result(data) - if @character.award_title(data[:gid]) + title = Title.find_by_gid(data[:gid]) + if @character.award_title(title) @results.push({ type: "title", title: title }) end end |