Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

fix: remove array in fetch user info

Aldino Kemal414343ccc732
diff --git a/controllers/user_controller.go b/controllers/user_controller.go
index 0b86f590..87cc7645 100644
--- a/controllers/user_controller.go
+++ b/controllers/user_controller.go
@@ -38,7 +38,7 @@ func (controller *UserController) UserInfo(c *fiber.Ctx) error {
return c.JSON(utils.ResponseData{
Code: 200,
Message: "Success",
- Results: response,
+ Results: response.Data[0],
})
}