Skip to content

Commit

Permalink
fix(db): Optimize release endpoint (#2022)
Browse files Browse the repository at this point in the history
Do not update the overview for all apps on a release (of one app).

Ref: SRX-YNEAHU
  • Loading branch information
sven-urbanski-freiheit-com authored Oct 8, 2024
1 parent ced5e46 commit c7b32d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cd-service/pkg/repository/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ func (c *CreateApplicationVersion) Transform(
}
}
if envInfo != nil && !found {
err = state.DBInsertEnvironmentWithOverview(ctx, transaction, env, envInfo.Config, append(envInfo.Applications, c.Application))
err = state.DBHandler.DBWriteEnvironment(ctx, transaction, env, envInfo.Config, append(envInfo.Applications, c.Application))
if err != nil {
return "", GetCreateReleaseGeneralFailure(err)
}
Expand Down

0 comments on commit c7b32d7

Please sign in to comment.