Skip to content

Commit

Permalink
service and handler
Browse files Browse the repository at this point in the history
  • Loading branch information
andoriyaprashant committed Jan 18, 2025
1 parent ebf29ac commit 9911bd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chaoscenter/graphql/server/pkg/chaoshub/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *chaosHubService) AddRemoteChaosHub(ctx context.Context, chaosHub model.
}

// SaveChaosHub is used for Adding a new ChaosHub
func (c *chaosHubService) SaveChaosHub(ctx context.Context, chaosHub model.CreateChaosHubRequest, projectID string, authConfigOperator *authorization.Operator) (*model.ChaosHub, error) {
func (c *chaosHubService) SaveChaosHub(ctx context.Context, chaosHub model.CreateChaosHubRequest, projectID string) (*model.ChaosHub, error) {

IsExist, err := c.IsChaosHubAvailable(ctx, chaosHub.Name, projectID)
if err != nil {
Expand Down Expand Up @@ -312,7 +312,7 @@ func (c *chaosHubService) SyncChaosHub(ctx context.Context, hubID string, projec
return "Successfully synced ChaosHub", nil
}

func (c *chaosHubService) UpdateChaosHub(ctx context.Context, chaosHub model.UpdateChaosHubRequest, projectID string, authConfigOperator *authorization.Operator) (*model.ChaosHub, error) {
func (c *chaosHubService) UpdateChaosHub(ctx context.Context, chaosHub model.UpdateChaosHubRequest, projectID string) (*model.ChaosHub, error) {

cloneHub := model.CloningInput{
RepoBranch: chaosHub.RepoBranch,
Expand Down
2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/pkg/probe/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (p *probeService) AddProbe(ctx context.Context, probe model.ProbeRequest, p
}

// UpdateProbe - Update a new Probe
func (p *probeService) UpdateProbe(ctx context.Context, request model.ProbeRequest, projectID string, authOperator *authorization.Operator) (string, error) {
func (p *probeService) UpdateProbe(ctx context.Context, request model.ProbeRequest, projectID string) (string, error) {
tkn := ctx.Value(authorization.AuthKey).(string)
username, err := p.authConfigOperator.GetUsername(tkn)
if err != nil {
Expand Down

0 comments on commit 9911bd9

Please sign in to comment.