Skip to content

Commit 7449a9a

Browse files
committed
update create path
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent c4aadb1 commit 7449a9a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/cli/pkg/action/workflow_contract_apply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ func (action *WorkflowContractApply) Run(ctx context.Context, contractName strin
8787
return nil, false, fmt.Errorf("failed to create new contract '%s': %w", contractName, err)
8888
}
8989

90-
return pbWorkflowContractItemToAction(res.Result), false, nil
90+
return pbWorkflowContractItemToAction(res.Result), true, nil
9191
}

app/controlplane/internal/service/workflowcontract.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2024-2025 The Chainloop Authors.
2+
// Copyright 2024-2026 The Chainloop Authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
@@ -304,7 +304,7 @@ func (s *WorkflowContractService) Apply(ctx context.Context, req *pb.WorkflowCon
304304
return nil, handleUseCaseErr(err, s.log)
305305
}
306306

307-
return &pb.WorkflowContractServiceApplyResponse{Result: bizWorkFlowContractToPb(schema)}, nil
307+
return &pb.WorkflowContractServiceApplyResponse{Result: bizWorkFlowContractToPb(schema), Changed: true}, nil
308308
}
309309

310310
func (s *WorkflowContractService) Delete(ctx context.Context, req *pb.WorkflowContractServiceDeleteRequest) (*pb.WorkflowContractServiceDeleteResponse, error) {

0 commit comments

Comments
 (0)