From 007896b0057b8aecbf74dddd269b57efe3f6e0e6 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 14 Jun 2021 10:21:44 -0400 Subject: Fix bug with activity title awarding --- CHANGELOG.md | 5 +++++ app/lib/activity_processor.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23380e6..a6e3d9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.1.10.3] - 2021-06-14 + +### Fixed +- Bug in title award code. + ## [0.1.10.2] - 2021-06-10 ### Activities 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 -- cgit v1.2.3