Skip to content

Commit

Permalink
fix: update watering status of tc while creating it
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad96Assaf committed Feb 26, 2025
1 parent 95e80f1 commit 4fd349e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/domain/treecluster/treecluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func (s *TreeClusterService) Create(ctx context.Context, createTc *domain.TreeCl
}

log.Info("tree cluster created successfully", "cluster_id", c.ID)
if err := s.publishUpdateEvent(ctx, c); err != nil {
return nil, service.MapError(ctx, err, service.ErrorLogAll)
}

return c, nil
}

Expand Down

0 comments on commit 4fd349e

Please sign in to comment.