summaryrefslogtreecommitdiff
path: root/app/services/badges/update_service.rb
blob: a653b7903dd8b228599b5fc5384abb08cbcd1826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Badges
  class UpdateService < Badges::BaseService
    # returns the updated badge
    def execute(badge)
      if params.present?
        badge.update(params)
      end

      badge
    end
  end
end