From 94fbc0d32e9e0580b765e48a584c7b912b0d2a67 Mon Sep 17 00:00:00 2001 From: Cakrawala <48281037+WahidinAji@users.noreply.github.com> Date: Wed, 11 May 2022 21:30:44 +0700 Subject: [PATCH] Update joke_total.go change to string(total) --- api/handler/joke/joke_total.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/joke/joke_total.go b/api/handler/joke/joke_total.go index a820134..38299c1 100644 --- a/api/handler/joke/joke_total.go +++ b/api/handler/joke/joke_total.go @@ -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), }) }