Update setter.go

convert int to string
This commit is contained in:
Cakrawala 2022-05-11 21:35:14 +07:00 committed by GitHub
parent 94fbc0d32e
commit b56b8ab0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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