diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e566224..138fdeb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,9 +4,8 @@ - @@ -179,7 +177,8 @@ - true diff --git a/pkg/internal/server/api/bots_api.go b/pkg/internal/server/api/bots_api.go index 1628316..f159e78 100644 --- a/pkg/internal/server/api/bots_api.go +++ b/pkg/internal/server/api/bots_api.go @@ -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