Skip to content

Commit e7945d1

Browse files
committed
fix: fix-incorrect-comparison
1 parent 04db724 commit e7945d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/metadata/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def update_metadata(
6868

6969
content_type = ContentType.objects.get_for_model(instance.__class__)
7070

71-
if metadata_data:
71+
if not metadata_data:
7272
Metadata.objects.filter(
7373
object_id=instance.pk, content_type=content_type
7474
).delete()

0 commit comments

Comments
 (0)