six-updater-web 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -67,6 +67,8 @@ class SystemSetting < ActiveRecord::Base
|
|
67
67
|
def sync
|
68
68
|
self.synchronized_at = Time.now
|
69
69
|
self.save
|
70
|
+
Mod.delete_all("type IS NULL or name IS NULL")
|
71
|
+
Appsetting.delete_all("type IS NULL or name IS NULL")
|
70
72
|
content = nil
|
71
73
|
l = self.synchronize
|
72
74
|
if l.size > 0
|
@@ -74,6 +76,8 @@ class SystemSetting < ActiveRecord::Base
|
|
74
76
|
else
|
75
77
|
content = "WARNING: No objects received, possibly issue with connection (timeout?), or server site"
|
76
78
|
end
|
79
|
+
Mod.delete_all("type IS NULL or name IS NULL")
|
80
|
+
Appsetting.delete_all("type IS NULL or name IS NULL")
|
77
81
|
content
|
78
82
|
end
|
79
83
|
end
|