Skip to content

Commit

Permalink
chore: fixes after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Steiner <jakob.steiner@glasskube.eu>
  • Loading branch information
kosmoz committed Feb 18, 2025
1 parent 49e6ba3 commit 45c75de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/handlers/application_licenses.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func updateApplicationLicense(w http.ResponseWriter, r *http.Request) {
license.OrganizationID = *auth.CurrentOrgID()

existing := internalctx.GetApplicationLicense(ctx)
if IsEmptyUUID(license.ID) {
if license.ID == uuid.Nil {
license.ID = existing.ID
} else if license.ID != existing.ID {
w.WriteHeader(http.StatusBadRequest)
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/deployment_targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func updateDeploymentTarget(w http.ResponseWriter, r *http.Request) {
return
}

if !IsEmptyUUID(dt.AgentVersion.ID) {
if dt.AgentVersion.ID != uuid.Nil {
dt.AgentVersionID = &dt.AgentVersion.ID
}

Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func validateDeploymentRequestLicense(
ctx context.Context,
w http.ResponseWriter,
request api.DeploymentRequest,
license *types.ApplicationLicenseWithVersions,
license *types.ApplicationLicense,
app *types.Application,
target *types.DeploymentTargetWithCreatedBy,
) error {
Expand Down

0 comments on commit 45c75de

Please sign in to comment.