Skip to content

Commit dedc188

Browse files
resolved comments
1 parent e8fb5f4 commit dedc188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type (
3434

3535
graphQlRuntimeCreationResponse struct {
3636
Data struct {
37-
RuntimeNew model.RuntimeCreationResponse
37+
CreateRuntime model.RuntimeCreationResponse
3838
}
3939
Errors []graphqlError
4040
}
@@ -55,7 +55,7 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
5555
jsonData := map[string]interface{}{
5656
"query": `
5757
mutation CreateRuntime($installationArgs: RuntimeInstallationArgs!) {
58-
runtimeNew(installationArgs: $installationArgs) {
58+
createRuntime(installationArgs: $installationArgs) {
5959
name
6060
newAccessToken
6161
}
@@ -77,7 +77,7 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
7777
return nil, graphqlErrorResponse{errors: res.Errors}
7878
}
7979

80-
return &res.Data.RuntimeNew, nil
80+
return &res.Data.CreateRuntime, nil
8181
}
8282

8383
func (r *argoRuntime) Get(ctx context.Context, name string) (*model.Runtime, error) {

0 commit comments

Comments
 (0)