From 3c897486569c1411f52b62a44eb1e7f8c50ce353 Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Tue, 7 Feb 2023 11:29:11 +0800 Subject: [PATCH] Updated. --- config/routes.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 0e12c8e..93aeba2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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