diff --git a/pkg/internal/http/api/accounts_api.go b/pkg/internal/http/api/accounts_api.go index a61c8c7..c004771 100644 --- a/pkg/internal/http/api/accounts_api.go +++ b/pkg/internal/http/api/accounts_api.go @@ -52,7 +52,7 @@ func getUserInBatch(c *fiber.Ctx) error { Preload("Badges", func(db *gorm.DB) *gorm.DB { return db.Order("badges.type DESC") }). - First(&accounts).Error; err != nil { + Find(&accounts).Error; err != nil { return fiber.NewError(fiber.StatusBadRequest, err.Error()) }