Skip to content

Commit

Permalink
fix duplicate in IssueAggregationUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
chriku committed Sep 23, 2024
1 parent 14368c1 commit 2ff46b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sync/src/main/kotlin/gropius/sync/AbstractSync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gropius.sync
import gropius.model.architecture.IMS
import gropius.model.architecture.IMSIssue
import gropius.model.architecture.IMSProject
import gropius.model.architecture.Trackable
import gropius.model.issue.Issue
import gropius.model.issue.Label
import gropius.model.issue.timeline.*
Expand Down Expand Up @@ -312,7 +313,10 @@ abstract class AbstractSync(
if (issue.rawId == null) issue = savedIssue as Issue
val updater = IssueAggregationUpdater()
if (isNewIssue) {
updater.addedIssueToTrackable(issue, imsProject.trackable().value)
updater.addedIssueToTrackable(
issue,
collectedSyncInfo.neoOperations.findById<Trackable>(imsProject.trackable().value.rawId!!)!!
)
}
updater.changedIssueStateOrType(
issue,
Expand Down

0 comments on commit 2ff46b5

Please sign in to comment.