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 3807242 commit f30a9c3Copy full SHA for f30a9c3
internal/api/handlers/update.go
@@ -43,7 +43,7 @@ func HandleCheckUpgradable(updater *update.Manager) http.HandlerFunc {
43
pkgs, err := updater.ListUpgradablePackages(r.Context(), filterFunc)
44
if err != nil {
45
code := update.GetUpdateErrorCode(err)
46
- if code == update.ErrOperationAlreadyInProgress.Code {
+ if code == update.OperationInProgress {
47
render.EncodeResponse(w, http.StatusConflict, models.ErrorResponse{
48
Code: string(code),
49
Details: err.Error(),
0 commit comments