Skip to content

Commit 7b003f8

Browse files
lucarin91dido18
andauthored
Update internal/api/handlers/update.go
Co-authored-by: Davide <davideneri18@gmail.com>
1 parent e9c979c commit 7b003f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/handlers/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
107107
err = updater.UpgradePackages(r.Context(), pkgs)
108108
if err != nil {
109109
code := update.GetUpdateErrorCode(err)
110-
if code == update.ErrOperationAlreadyInProgress.Code {
110+
if code == update.OperationInProgress {
111111
render.EncodeResponse(w, http.StatusConflict, models.ErrorResponse{
112112
Code: string(code),
113113
Details: err.Error(),

0 commit comments

Comments
 (0)