diff --git a/pkg/internal/http/api/oauth_api.go b/pkg/internal/http/api/oauth_api.go index 9597d73..f323810 100755 --- a/pkg/internal/http/api/oauth_api.go +++ b/pkg/internal/http/api/oauth_api.go @@ -44,7 +44,7 @@ func tryAuthorizeThirdClient(c *fiber.Ctx) error { "ticket": nil, }) } else { - ticket, err = services.RotateTicket(ticket) + ticket, _ = services.RotateTicket(ticket) } return c.JSON(fiber.Map{ diff --git a/pkg/internal/http/api/relationships_api.go b/pkg/internal/http/api/relationships_api.go index 47c3833..3e505ff 100644 --- a/pkg/internal/http/api/relationships_api.go +++ b/pkg/internal/http/api/relationships_api.go @@ -1,13 +1,14 @@ package api import ( + "strconv" + "strings" + "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "git.solsynth.dev/hypernet/passport/pkg/internal/http/exts" "git.solsynth.dev/hypernet/passport/pkg/internal/services" "github.com/gofiber/fiber/v2" "github.com/samber/lo" - "strconv" - "strings" ) func listRelationship(c *fiber.Ctx) error { @@ -27,7 +28,7 @@ func listRelationship(c *fiber.Ctx) error { var err error var friends []models.AccountRelationship - if len(status) < 0 { + if len(status) == 0 { if friends, err = services.ListAllRelationship(user); err != nil { return fiber.NewError(fiber.StatusInternalServerError, err.Error()) }