Skip to content

Commit

Permalink
Merge branch 'feature/elchanan/docker_sign' of https://github.com/Che…
Browse files Browse the repository at this point in the history
…ckmarx/ast-cli into feature/elchanan/docker_sign
  • Loading branch information
elchananarb committed Sep 26, 2024
2 parents 8767250 + fa1d670 commit 88e932e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/services/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func FindProject(

func GetProjectsCollectionByProjectName(projectName string, projectsWrapper wrappers.ProjectsWrapper) (*wrappers.ProjectsCollectionResponseModel, error) {
params := make(map[string]string)
params["names"] = projectName
params["name"] = projectName
resp, _, err := projectsWrapper.Get(params)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/wrappers/mock/projects-mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (p *ProjectsMockWrapper) Get(params map[string]string) (
}

var model *wrappers.ProjectsCollectionResponseModel
switch name := params["names"]; name {
switch name := params["name"]; name {
case "fake-kics-scanner-fail":
model = getProjectResponseModel(fmt.Sprintf("%s-id", name), name, filteredTotalCount)
case "fake-multiple-scanner-fails":
Expand Down

0 comments on commit 88e932e

Please sign in to comment.