From b56b8ab0ac4838c5aeb40a0aaabb71650f14d61f Mon Sep 17 00:00:00 2001 From: Cakrawala <48281037+WahidinAji@users.noreply.github.com> Date: Wed, 11 May 2022 21:35:14 +0700 Subject: [PATCH] Update setter.go convert int to string --- api/core/joke/setter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/joke/setter.go b/api/core/joke/setter.go index c8ef51a..ddf4829 100644 --- a/api/core/joke/setter.go +++ b/api/core/joke/setter.go @@ -47,7 +47,7 @@ func SetTotalJoke(db *pgxpool.Pool, ctx context.Context, memory *bigcache.BigCac return err } - var total = []byte{byte(len(data))} + var total = []byte(strconv.Itoa(len(data))) err = memory.Set("total", total) if err != nil { return err