From 8e1acb5e9a8f5b70bd3315df319dfbd2993824a8 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 2 May 2023 15:24:39 -0600 Subject: [PATCH] Fixing query --- logic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic.go b/logic.go index 158d091..affec8f 100644 --- a/logic.go +++ b/logic.go @@ -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 { -- 2.45.2