diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 2e7e57b..e9d25de 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -159,7 +159,6 @@
-
@@ -184,7 +183,8 @@
-
+
+
diff --git a/pkg/internal/http/api/userinfo_api.go b/pkg/internal/http/api/userinfo_api.go
index 185c5cf..77b28fa 100644
--- a/pkg/internal/http/api/userinfo_api.go
+++ b/pkg/internal/http/api/userinfo_api.go
@@ -15,11 +15,11 @@ import (
func getOtherUserinfo(c *fiber.Ctx) error {
alias := c.Params("alias")
- tx := database.C.Where("name = ?")
+ tx := database.C.Where("name = ?", alias)
numericId, err := strconv.Atoi(alias)
if err == nil {
- tx = tx.Where("id = ?", numericId)
+ tx = tx.Or("id = ?", numericId)
}
var account models.Account