fix artist ban

This commit is contained in:
r888888888
2016-03-05 17:17:53 -08:00
parent cc2ff0c7ad
commit f51857f5f2

View File

@@ -298,7 +298,7 @@ class Artist < ActiveRecord::Base
# potential race condition but unlikely
unless TagImplication.where(:antecedent_name => name, :consequent_name => "banned_artist").exists?
tag_implication = TagImplication.create(:antecedent_name => name, :consequent_name => "banned_artist")
tag_implication = TagImplication.create!(:antecedent_name => name, :consequent_name => "banned_artist", :skip_secondary_validations => true, :status => "pending")
tag_implication.delay(:queue => "default").process!
end