🐛 Bug fixes

This commit is contained in:
LittleSheep 2025-01-27 18:17:34 +08:00
parent 0db2967214
commit a43e89a5a3
2 changed files with 5 additions and 4 deletions

View File

@ -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{

View File

@ -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())
}