Fix datasync for CORE -> Rattail, per CustomerShopper changes
This commit is contained in:
parent
a45d28cd6f
commit
6c21073182
|
@ -74,10 +74,10 @@ class FromCOREAPIToRattail(DataSyncImportConsumer):
|
||||||
member = self.get_host_object(session, change)
|
member = self.get_host_object(session, change)
|
||||||
self.process_change(session, self.importers['Customer'],
|
self.process_change(session, self.importers['Customer'],
|
||||||
host_object=member)
|
host_object=member)
|
||||||
people = self.importers['Person'].get_person_objects_for_member(member)
|
shoppers = self.importers['CustomerShopper'].get_shoppers_for_member(member)
|
||||||
for person in people:
|
for shopper in shoppers:
|
||||||
self.process_change(session, self.importers['Person'],
|
self.process_change(session, self.importers['CustomerShopper'],
|
||||||
host_object=person)
|
host_object=shopper)
|
||||||
self.process_change(session, self.importers['Member'],
|
self.process_change(session, self.importers['Member'],
|
||||||
host_object=member)
|
host_object=member)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue