Skip to content

Commit e9c979c

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

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
@@ -85,7 +85,7 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
8585
pkgs, err := updater.ListUpgradablePackages(r.Context(), filterFunc)
8686
if err != nil {
8787
code := update.GetUpdateErrorCode(err)
88-
if code == update.ErrOperationAlreadyInProgress.Code {
88+
if code == update.OperationInProgress {
8989
render.EncodeResponse(w, http.StatusConflict, models.ErrorResponse{
9090
Code: string(code),
9191
Details: err.Error(),

0 commit comments

Comments
 (0)