Skip to content

Commit

Permalink
fix(db): change argument order in Exists query for JavaDB (aquasecuri…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaspawnW authored and AnaisUrlichs committed Aug 10, 2023
1 parent dae3d8a commit 742879f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func NewClient() (*DB, error) {
}

func (d *DB) Exists(groupID, artifactID string) (bool, error) {
index, err := d.driver.SelectIndexByArtifactIDAndGroupID(groupID, artifactID)
index, err := d.driver.SelectIndexByArtifactIDAndGroupID(artifactID, groupID)
if err != nil {
return false, err
}
Expand Down

0 comments on commit 742879f

Please sign in to comment.