diff options
author | 2021-03-15 23:05:24 +0100 | |
---|---|---|
committer | 2021-03-15 23:05:24 +0100 | |
commit | 4e281f31b0e0c1410264a99687983f2d309cdd00 (patch) | |
tree | 13712ef6c55d7a71fa082fc01ed71013054ed217 /internal/oauth/pgclientstore.go | |
parent | go mod tidy (diff) | |
download | gotosocial-4e281f31b0e0c1410264a99687983f2d309cdd00.tar.xz |
whole buncha stuff
Diffstat (limited to 'internal/oauth/pgclientstore.go')
-rw-r--r-- | internal/oauth/pgclientstore.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |