Skip to content

Commit

Permalink
snapshot bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
johankristianss committed Mar 8, 2024
1 parent 6f9bf41 commit 9bc5348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/database/postgresql/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (db *PQDatabase) GetFileLabelsByName(colonyName string, name string) ([]*co
}

func (db *PQDatabase) GetFileLabelByName(colonyName string, name string) (*core.Label, error) {
sqlStatement := `SELECT LABEL FROM ` + db.dbPrefix + `FILES WHERE COLONY_NAME=$1 AND LABEL=$2`
sqlStatement := `SELECT DISTINCT (LABEL) FROM ` + db.dbPrefix + `FILES WHERE COLONY_NAME=$1 AND LABEL=$2`
rows, err := db.postgresql.Query(sqlStatement, colonyName, name)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9bc5348

Please sign in to comment.