Skip to content
Snippets Groups Projects
Commit ec938279 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

always update

parent f2f0f33e
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class Communication::Website::Imported::Page < ApplicationRecord
self.page.save
end
# Don't touch if there are local changes (this would destroy some nice work)
return if page.updated_at > updated_at
# return if page.updated_at > updated_at
# Don't touch if there are no remote changes (this would do useless server workload)
# return if page.updated_at == updated_at
puts "Update page #{page.id}"
......
......@@ -77,7 +77,7 @@ class Communication::Website::Imported::Post < ApplicationRecord
self.post.save
end
# Don't touch if there are local changes (this would destroy some nice work)
return if post.updated_at > updated_at
# return if post.updated_at > updated_at
# Don't touch if there are no remote changes (this would do useless server workload)
# return if post.updated_at == updated_at
title = Wordpress.clean title.to_s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment