Skip validations when fixing `Topic#featured_link` in onceoff job.

This commit is contained in:
Guo Xiang Tan 2017-12-15 23:44:25 +08:00
parent c60dcd4a3d
commit 5489cd14c7
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Jobs
begin
URI.parse(featured_link)
rescue URI::InvalidURIError
topic.update!(featured_link: URI.extract(featured_link).first)
topic.update_attributes(featured_link: URI.extract(featured_link).first)
end
end
end