Change featured hashtag deletion to be done synchronously (#19590)

This commit is contained in:
Claire 2022-10-31 16:31:44 +01:00 committed by GitHub
parent 2d9a85db6e
commit bb1ef11c30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class Settings::FeaturedTagsController < Settings::BaseController
end end
def destroy def destroy
RemoveFeaturedTagWorker.perform_async(current_account.id, @featured_tag.id) RemoveFeaturedTagService.new.call(current_account, @featured_tag)
redirect_to settings_featured_tags_path redirect_to settings_featured_tags_path
end end