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