Skip to content
Snippets Groups Projects
Unverified Commit a7a4dccc authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

hotfix: filter direct sources

parent 7e86d5eb
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ module Communication::Website::WithGitRepository
# Synchronisation optimale d'objet indirect
def sync_indirect_object_with_git(indirect_object)
return unless git_repository.valid?
indirect_object.direct_sources.each do |direct_source|
indirect_object.direct_sources.where(website_id: self.id).each do |direct_source|
add_direct_source_to_sync(direct_source)
end
git_repository.sync!
......
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