fix search for channel

pull/1/head
Nilo Roberto C Paim 2023-09-05 17:41:54 -03:00
parent 6b31e05338
commit 663a162005
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ func AddUser(c *fiber.Ctx) error {
var user models.User
database.DB.Find(&user, "channel = ?", strings.ToLower(data["channel"]))
database.DB.Where("channel = ?", strings.ToLower(data["channel"])).First(&user)
if user.Id == 0 {
return c.JSON(fiber.Map{