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 bf8416f commit abc525d
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 @@ -147,6 +147,8 @@ def update(self, instance: ExternalDataSchema, validated_data: dict[str, Any]) -
payload = instance.sync_type_config
payload.pop("incremental_field", None)
payload.pop("incremental_field_type", None)
payload.pop("incremental_field_last_value", None)
payload.pop("incremental_field_last_value_v2", None)

validated_data["sync_type_config"] = payload

Expand Down

0 comments on commit abc525d

Please sign in to comment.