mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
Save account info
This commit is contained in:
parent
993c07938c
commit
002851efe7
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Set account ID from Reddit
|
||||
acc.AccountID = me.ID
|
||||
|
||||
if err := a.accountRepo.CreateOrUpdate(ctx, &acc); err != nil {
|
||||
a.errorResponse(w, r, 422, err.Error())
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue