🐛 Fix query issue

This commit is contained in:
2024-08-25 17:16:22 +08:00
parent 876cfa9956
commit a6b0170b1d
2 changed files with 29 additions and 30 deletions

View File

@ -18,7 +18,7 @@ func listBots(c *fiber.Ctx) error {
}
user := c.Locals("user").(models.Account)
tx := database.C.Where("automated_id = ?", user.AutomatedID)
tx := database.C.Where("automated_id = ?", user.ID)
countTx := tx
var count int64