Skip to content

Commit 9dd318b

Browse files
authored
Merge branch 'main' into fix-doc
2 parents b1991fc + 67d7388 commit 9dd318b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ func updateUser(ctx context.Context, u *User, changePrimaryEmail bool) error {
855855
if _, err := e.Insert(&emailAddress); err != nil {
856856
return err
857857
}
858-
} else if _, err := e.ID(emailAddress).Cols("is_primary").Update(&EmailAddress{
858+
} else if _, err := e.ID(emailAddress.ID).Cols("is_primary").Update(&EmailAddress{
859859
IsPrimary: true,
860860
}); err != nil {
861861
return err

0 commit comments

Comments
 (0)