Skip to content

Commit

Permalink
fix(db): fix get manifests query (#2025)
Browse files Browse the repository at this point in the history
Ref: SRX-0Q0FWU
  • Loading branch information
AminSlk authored Oct 8, 2024
1 parent efe1169 commit 6a97b66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func (h *DBHandler) DBSelectAllManifestsForAllReleases(ctx context.Context, tx *
releases.environments
FROM (
SELECT
MAX(releaseVersion) AS latestRelease,
MAX(eslVersion) AS latestRelease,
appname,
releaseversion
FROM
Expand All @@ -660,7 +660,8 @@ func (h *DBHandler) DBSelectAllManifestsForAllReleases(ctx context.Context, tx *
JOIN
releases AS releases
ON
latest.latestRelease=releases.releaseVersion
latest.latestRelease=releases.eslVersion
AND latest.releaseVersion=releases.releaseVersion
AND latest.appname=releases.appname;
`)
span, ctx := tracer.StartSpanFromContext(ctx, "DBSelectAllManifestsForAllReleases")
Expand Down

0 comments on commit 6a97b66

Please sign in to comment.