~netlandish/gobwebs-oauth2

8e1acb5e9a8f5b70bd3315df319dfbd2993824a8 — Peter Sanchez 1 year, 6 months ago 0d5923b
Fixing query
1 files changed, 1 insertions(+), 1 deletions(-)

M logic.go
M logic.go => logic.go +1 -1
@@ 25,7 25,7 @@ func OAuth2(ctx context.Context, token string, fetch gobwebs.UserFetch) (*TokenU
	hash := sha512.Sum512([]byte(token))
	hashStr := hex.EncodeToString(hash[:])
	opts := &database.FilterOptions{
		Filter: sq.Eq{"hash": hashStr},
		Filter: sq.Eq{"token_hash": hashStr},
	}
	grants, err := GetGrants(ctx, opts)
	if err != nil {