diff options
Diffstat (limited to 'lib/api/award_emoji.rb')
-rw-r--r-- | lib/api/award_emoji.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/award_emoji.rb b/lib/api/award_emoji.rb index f7a39db7249..aa7468723b7 100644 --- a/lib/api/award_emoji.rb +++ b/lib/api/award_emoji.rb @@ -82,7 +82,9 @@ module API unauthorized! unless award.user == current_user || current_user&.can_admin_all_resources? - destroy_conditionally!(award) + destroy_conditionally!(award) do + AwardEmojis::DestroyService.new(awardable, award.name, award.user).execute + end end end end |