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 committed Jun 14, 2023
1 parent aecd2f0 commit bc9513f
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 bc9513f

Please sign in to comment.