mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 23:33:16 -06:00
more big changes
This commit is contained in:
parent
b9746a30f3
commit
4e054233da
71 changed files with 640 additions and 405 deletions
|
|
@ -39,9 +39,7 @@ func NewClientStore(db db.Basic) oauth2.ClientStore {
|
|||
}
|
||||
|
||||
func (cs *clientStore) GetByID(ctx context.Context, clientID string) (oauth2.ClientInfo, error) {
|
||||
poc := &Client{
|
||||
ID: clientID,
|
||||
}
|
||||
poc := &Client{}
|
||||
if err := cs.db.GetByID(ctx, clientID, poc); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -67,7 +65,7 @@ func (cs *clientStore) Delete(ctx context.Context, id string) error {
|
|||
|
||||
// Client is a handy little wrapper for typical oauth client details
|
||||
type Client struct {
|
||||
ID string `pg:"type:CHAR(26),pk,notnull"`
|
||||
ID string `bun:"type:CHAR(26),pk,notnull"`
|
||||
Secret string
|
||||
Domain string
|
||||
UserID string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue