Skip to content

Commit

Permalink
fixed wrong task deletion (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
federicofantini authored Aug 20, 2024
1 parent 157e9e9 commit c5c061b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def migrate(apps, schema_editor):
correct_task.save()
related_ingestor.periodic_task = correct_task
related_ingestor.save()
wrong_task.delete()

if wrong_task != correct_task:
wrong_task.delete()

for pc in PluginConfig.objects.filter(owner=u):
pc.owner = correct_user
Expand Down

0 comments on commit c5c061b

Please sign in to comment.