Fix datasync for CORE -> Rattail, per CustomerShopper changes

This commit is contained in:
Lance Edgar 2023-06-08 10:53:54 -05:00
parent a45d28cd6f
commit 6c21073182

View file

@ -74,10 +74,10 @@ class FromCOREAPIToRattail(DataSyncImportConsumer):
member = self.get_host_object(session, change)
self.process_change(session, self.importers['Customer'],
host_object=member)
people = self.importers['Person'].get_person_objects_for_member(member)
for person in people:
self.process_change(session, self.importers['Person'],
host_object=person)
shoppers = self.importers['CustomerShopper'].get_shoppers_for_member(member)
for shopper in shoppers:
self.process_change(session, self.importers['CustomerShopper'],
host_object=shopper)
self.process_change(session, self.importers['Member'],
host_object=member)