Fix onceoff job in cfa7173da3 not running.

This commit is contained in:
Guo Xiang Tan 2018-10-01 17:14:04 +08:00
parent cf60ae32ea
commit 05fe5c9188

View File

@ -1,5 +1,5 @@
module Jobs module Jobs
class RecoverUserProfileBackgrounds < Onceoff class RecoverUserProfileBackgrounds < Jobs::Onceoff
def execute_onceoff(_) def execute_onceoff(_)
base_url = Discourse.store.absolute_base_url base_url = Discourse.store.absolute_base_url
return if !base_url.match?(/s3\.dualstack/) return if !base_url.match?(/s3\.dualstack/)