Skip to content

Commit

Permalink
chore: moved the cycle id
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanBavisetti committed Jul 8, 2024
1 parent e56e9bb commit c7e1a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/plane/app/views/cycle/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,7 @@ def post(self, request, slug, project_id, cycle_id):
updated_cycles = []
update_cycle_issue_activity = []
for cycle_issue in cycle_issues:
cycle_issue.cycle_id = new_cycle_id
updated_cycles.append(cycle_issue)
update_cycle_issue_activity.append(
{
Expand All @@ -1517,7 +1518,6 @@ def post(self, request, slug, project_id, cycle_id):
"issue_id": str(cycle_issue.issue_id),
}
)
cycle_issue.cycle_id = new_cycle_id

cycle_issues = CycleIssue.objects.bulk_update(
updated_cycles, ["cycle_id"], batch_size=100
Expand Down

0 comments on commit c7e1a59

Please sign in to comment.