Skip to content

Commit

Permalink
feat: implemented user conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
vidocco committed Oct 12, 2018
1 parent 734ff65 commit 4900fae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/auth.controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ func Register (w http.ResponseWriter, r *http.Request, params denco.Params) {
defer userRes.Body.Close()
utils.CheckErr(err)

var user structs.SpotifyUser
var spotifyUser structs.SpotifyUser
decoder = json.NewDecoder(userRes.Body)
err = decoder.Decode(&user)
err = decoder.Decode(&spotifyUser)
utils.CheckErr(err)

user := structs.NewListmeraUser(spotifyUser)
//models.GetTokens(req.Code) // from here on, everything should be a goroutine
}

Expand Down

0 comments on commit 4900fae

Please sign in to comment.