Skip to content

Commit

Permalink
chore: set status to original tasks if not equal
Browse files Browse the repository at this point in the history
  • Loading branch information
gebv committed Feb 22, 2022
1 parent ff1d3cc commit 3d592c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions clickup/sync_mirror_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ func (s *mirrorTaskSyncer) applyChangesToMirrorTask(ctx context.Context, mirror
// TODO: description change

if origTaskStatus := statuses.SetStatusToOrigTaskIfExists(mirror.GetMirrorTask(ctx).StatusName); origTaskStatus != "" {
// will be set to original task the status
needToUpdateTask = true
updTask.StatusName = strings.ToLower(origTaskStatus)
if strings.ToLower(mirror.GetOrigTask(ctx).StatusName) != origTaskStatus {
// will be set to original task the status
needToUpdateTask = true
updTask.StatusName = strings.ToLower(origTaskStatus)
}
}

if statuses.AllowedSyncEstimate(mirror.GetMirrorTask(ctx).StatusName) {
Expand Down

0 comments on commit 3d592c7

Please sign in to comment.