Fix wrong chi version

This commit is contained in:
Jamie Curnow
2023-05-26 19:48:09 +10:00
parent e6ae25d081
commit e61cf52a65
5 changed files with 17 additions and 12 deletions

View File

@ -8,7 +8,7 @@ import (
"npm/internal/api/context"
"npm/internal/model"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/rotisserie/eris"
)
@ -112,7 +112,6 @@ func getURLParamInt(r *http.Request, varName string) (uint, error) {
return defaultValue, nil
}
// func ParseUint(s string, base int, bitSize int) (n uint64, err error)
paramUint, err := strconv.ParseUint(paramStr, 10, 32)
if err != nil {
return 0, eris.Wrapf(err, "%v is not a valid number", varName)

View File

@ -11,7 +11,7 @@ import (
"npm/internal/api/middleware"
"npm/internal/entity/setting"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
)
// GetSettings will return a list of Settings

View File

@ -14,7 +14,7 @@ import (
"npm/internal/errors"
"npm/internal/logger"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
)
// GetUsers returns all users