From 4e281f31b0e0c1410264a99687983f2d309cdd00 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Mon, 15 Mar 2021 23:05:24 +0100 Subject: whole buncha stuff --- internal/oauth/pgclientstore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/oauth/pgclientstore.go') diff --git a/internal/oauth/pgclientstore.go b/internal/oauth/pgclientstore.go index dda5fb3d6..22bb54f55 100644 --- a/internal/oauth/pgclientstore.go +++ b/internal/oauth/pgclientstore.go @@ -37,9 +37,9 @@ func NewPGClientStore(conn *pg.DB) oauth2.ClientStore { return pts } -func (pcs *pgClientStore) GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error) { +func (pcs *pgClientStore) GetByID(ctx context.Context, clientID string) (oauth2.ClientInfo, error) { poc := &oauthClient{ - ID: id, + ID: clientID, } if err := pcs.conn.WithContext(ctx).Model(poc).Where("id = ?", poc.ID).Select(); err != nil { return nil, err -- cgit v1.2.3