Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-urbanski-freiheit-com committed Oct 10, 2024
1 parent b7bf0c8 commit 3e806ef
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,23 +623,13 @@ func (h *DBHandler) DBSelectReleasesByVersions(ctx context.Context, tx *sql.Tx,
return []*DBReleaseWithMetaData{}, nil
}
repeatedQuestionMarks := strings.Repeat(",?", len(releaseVersions)-1)
// selectQuery := h.AdaptQuery(fmt.Sprintf(
// `
//SELECT eslVersion, created, appName, metadata, releaseVersion, deleted, environments
//FROM releases
//WHERE appName=? AND releaseVersion IN (?` + repeatedQuestionMarks + `)
//ORDER BY eslVersion DESC
//LIMIT ?;
//`))

selectQuery := h.AdaptQuery(`
SELECT DISTINCT
releases.eslVersion,
releases.created,
releases.appName,
releases.metadata,
-- releases.manifests,
releases.releaseVersion,
releases.deleted,
releases.environments
Expand Down

0 comments on commit 3e806ef

Please sign in to comment.