# HG changeset patch # User Peter Sanchez # Date 1683062679 21600 # Tue May 02 15:24:39 2023 -0600 # Node ID 405ac6b28cdd731bc16ac1a04e96e6353d2b45d1 # Parent fe3bcabfd62f0ed4f841f2696e6bce2c5d4a1461 Fixing query diff --git a/logic.go b/logic.go --- a/logic.go +++ b/logic.go @@ -25,7 +25,7 @@ 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 {