From aa50d34235c866b02bca218c2fbc967e89491a1b Mon Sep 17 00:00:00 2001 From: Andrew Onyshchuk Date: Wed, 23 Oct 2024 00:45:37 -0700 Subject: [PATCH] Fix SQL Destroy (#50) --- internal/sql/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sql/provider.go b/internal/sql/provider.go index b9b045a..835b19c 100644 --- a/internal/sql/provider.go +++ b/internal/sql/provider.go @@ -122,7 +122,7 @@ func (p *Provider) Regenerate(id, newID []byte, expiration time.Duration) error // Destroy destroys the session from the given id func (p *Provider) Destroy(id []byte) error { - _, err := p.Exec(p.config.SQLDestroy, id) + _, err := p.Exec(p.config.SQLDestroy, strconv.B2S(id)) return err }