Fix unconvert

This commit is contained in:
Mark Sagi-Kazar
2019-12-18 15:56:46 +01:00
parent f141f2133b
commit 2f8d1f8e42
3 changed files with 2 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ func (c *conn) UpdateRefreshToken(id string, updater func(old storage.RefreshTok
return c.txnUpdate(ctx, keyID(refreshTokenPrefix, id), func(currentValue []byte) ([]byte, error) {
var current RefreshToken
if len(currentValue) > 0 {
if err := json.Unmarshal([]byte(currentValue), &current); err != nil {
if err := json.Unmarshal(currentValue, &current); err != nil {
return nil, err
}
}