six-updater-web 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|