Skip to content

Commit

Permalink
Update internal/api/verify.go
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Lee <[email protected]>
  • Loading branch information
kangmingtay and J0 authored Feb 8, 2024
1 parent fc2554b commit 0df2683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (a *API) emailChangeVerify(r *http.Request, ctx context.Context, conn *stor
return terr
}
}
if terr := tx.Load(user, "Identities"); terr != nil {
if terr := tx.Load(user, models.Identity{}.TableName()); terr != nil {
return internalServerError("Error refetching identities").WithInternalError(terr)
}
if terr := user.ConfirmEmailChange(tx, zeroConfirmation); terr != nil {
Expand Down

0 comments on commit 0df2683

Please sign in to comment.