Skip to content

Commit

Permalink
Fix SQL Destroy (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandrew authored Oct 23, 2024
1 parent 2c67247 commit aa50d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sql/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit aa50d34

Please sign in to comment.