Skip to content

Commit

Permalink
Use the correct set bundle version query for the subscriptions table
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Nov 1, 2024
1 parent c2ad7b3 commit 90c13b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion database/query/subscriptions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ WHERE bu.namespace = $1 AND bu.name = $2 AND su.project_id = $3;

-- name: SetSubscriptionBundleVersion :exec
UPDATE subscriptions SET current_version = $2 WHERE project_id = $1;

2 changes: 1 addition & 1 deletion pkg/querier/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type BundleHandlers interface {

// SetCurrentVersion sets the current version of the bundle for a project
func (t *Type) SetCurrentVersion(ctx context.Context, projectID uuid.UUID, currentVersion string) error {
return t.querier.SetCurrentVersion(ctx, db.SetCurrentVersionParams{
return t.querier.SetSubscriptionBundleVersion(ctx, db.SetSubscriptionBundleVersionParams{
ProjectID: projectID,
CurrentVersion: currentVersion,
})
Expand Down

0 comments on commit 90c13b6

Please sign in to comment.