This commit is contained in:
BoHung Chiu 2023-02-07 11:29:11 +08:00
parent b494447f8d
commit 3c89748656
1 changed files with 1 additions and 3 deletions

View File

@ -12,9 +12,7 @@ if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined
ad_image.generate_video_snapshot
end
if update_flag
s = OrbitHelper::SharedHash['current_site']['site'] rescue Site.first
s.tmp_flags << 'adf1'
s.save
Site.update_all("$push"=>{"tmp_flags"=>'adf1'})
end
end
end