fix: delete old blocks from on issue update

This commit is contained in:
pablohashescobar 2022-12-22 17:01:44 +05:30
parent 364ad0a301
commit e631d50853

View File

@ -229,6 +229,7 @@ class IssueCreateSerializer(BaseSerializer):
)
if blocks is not None:
IssueBlocker.objects.filter(blocked_by=instance).delete()
IssueBlocker.objects.bulk_create(
[
IssueBlocker(