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 e9c979c commit 7b003f8Copy full SHA for 7b003f8
internal/api/handlers/update.go
@@ -107,7 +107,7 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
107
err = updater.UpgradePackages(r.Context(), pkgs)
108
if err != nil {
109
code := update.GetUpdateErrorCode(err)
110
- if code == update.ErrOperationAlreadyInProgress.Code {
+ if code == update.OperationInProgress {
111
render.EncodeResponse(w, http.StatusConflict, models.ErrorResponse{
112
Code: string(code),
113
Details: err.Error(),
0 commit comments