Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KenWilliamson committed Aug 8, 2020
1 parent d1539d8 commit 5bb1d37
Show file tree
Hide file tree
Showing 4 changed files with 370 additions and 368 deletions.
5 changes: 3 additions & 2 deletions mysqldb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ func (d *MySQLOauthDB) AddClient(client *odb.Client, uris *[]odb.ClientRedirectU
//fmt.Println("cid in add client: ", cid)
//fail = addURIs(tx, id, uris)
if uris != nil && len(*uris) > 0 {
for _, u := range *uris {
for i := range *uris {
var u = &(*uris)[i]
//d.Tx = tx
u.ClientID = cid
rsus, rid := d.AddClientRedirectURI(tx, &u)
rsus, rid := d.AddClientRedirectURI(tx, u)
// fmt.Println("cid in add client: ", cid)
// fmt.Println("rid in add client: ", rid)
// fmt.Println("rsus in add client: ", rsus)
Expand Down
Loading

0 comments on commit 5bb1d37

Please sign in to comment.