Fix shared database sync (relates to PR #610)
This commit is contained in:
parent
567e27d99a
commit
d669edb173
1 changed files with 0 additions and 1 deletions
|
@ -55,7 +55,6 @@ class Supplier < ApplicationRecord
|
||||||
unless shared_sync_method == 'import'
|
unless shared_sync_method == 'import'
|
||||||
shared_supplier
|
shared_supplier
|
||||||
.shared_articles
|
.shared_articles
|
||||||
.where(available: true)
|
|
||||||
.where.not(id: existing_articles)
|
.where.not(id: existing_articles)
|
||||||
.each { |shared_article| new_articles << shared_article.build_new_article(self) }
|
.each { |shared_article| new_articles << shared_article.build_new_article(self) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue