Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Dec 27, 2023
1 parent 05bab6d commit 13527cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/objects/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ def update(self, instance, validated_data):
validated_data["version"] = instance.version
if self.partial and "data" in validated_data:
# Apply JSON Merge Patch for record data
validated_data["data"] = merge_patch(
instance.data, validated_data["data"]
)
validated_data["data"] = merge_patch(instance.data, validated_data["data"])

record = super().create(validated_data)
return record
Expand Down

0 comments on commit 13527cd

Please sign in to comment.