We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30a9c3 commit e9c979cCopy full SHA for e9c979c
internal/api/handlers/update.go
@@ -85,7 +85,7 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
85
pkgs, err := updater.ListUpgradablePackages(r.Context(), filterFunc)
86
if err != nil {
87
code := update.GetUpdateErrorCode(err)
88
- if code == update.ErrOperationAlreadyInProgress.Code {
+ if code == update.OperationInProgress {
89
render.EncodeResponse(w, http.StatusConflict, models.ErrorResponse{
90
Code: string(code),
91
Details: err.Error(),
0 commit comments