Skip to content

Commit

Permalink
Pop the incremental value when changing to/from incremental
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Dec 19, 2024
1 parent abc525d commit 82c7b02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posthog/warehouse/api/external_data_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def update(self, instance: ExternalDataSchema, validated_data: dict[str, Any]) -
payload = instance.sync_type_config
payload["incremental_field"] = data.get("incremental_field")
payload["incremental_field_type"] = data.get("incremental_field_type")
payload["incremental_field_last_value"] = None
payload["incremental_field_last_value_v2"] = None

validated_data["sync_type_config"] = payload
else:
Expand Down

0 comments on commit 82c7b02

Please sign in to comment.