diff --git a/src/pretix/base/datasync/datasync.py b/src/pretix/base/datasync/datasync.py index 298d01a61e..99b280b01a 100644 --- a/src/pretix/base/datasync/datasync.py +++ b/src/pretix/base/datasync/datasync.py @@ -261,10 +261,11 @@ class OutboundSyncProvider: }) sq.delete() else: - sq.order.log_action("pretix.event.order.data_sync.success", { - "provider": self.identifier, - "objects": mapped_objects - }) + if not all(res.get("action", "") == "nothing_to_do" for res in mapped_objects.values()): + sq.order.log_action("pretix.event.order.data_sync.success", { + "provider": self.identifier, + "objects": mapped_objects + }) sq.delete() @cached_property @@ -334,6 +335,9 @@ class OutboundSyncProvider: "external_id_field": external_id_field, "id_value": id_value, + # optional: + "action": "nothing_to_do", # to inform that no action was taken, because the data was already up-to-date + # optional: "external_link_href": "https://external-system.example.com/backend/link/to/contact/123/", "external_link_display_name": "Contact #123 - Jane Doe",