Update joke_total.go

change to string(total)
This commit is contained in:
Cakrawala 2022-05-11 21:30:44 +07:00 committed by GitHub
parent 7ea79bf6a9
commit 94fbc0d32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,6 @@ func (d *Dependencies) TotalJokes(c *fiber.Ctx) error {
return c.
Status(fiber.StatusOK).
JSON(ResponseJoke{
Message: strconv.Itoa(int(total[0])),
Message: string(total),
})
}