From ad305e68ce3ffb2730d8343e9389c6e76bd39924 Mon Sep 17 00:00:00 2001 From: icey-yu <119291641+icey-yu@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:45:59 +0800 Subject: [PATCH] fix: update user email error (#604) --- internal/rpc/chat/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/chat/update.go b/internal/rpc/chat/update.go index 8f69de2f..13b9b57f 100644 --- a/internal/rpc/chat/update.go +++ b/internal/rpc/chat/update.go @@ -99,7 +99,7 @@ func ToDBCredentialUpdate(req *chat.UpdateUserInfoReq, allowChange bool) ([]*cha } else { update = append(update, &chatdb.Credential{ UserID: req.UserID, - Account: req.Account.GetValue(), + Account: req.Email.GetValue(), Type: constant.CredentialEmail, AllowChange: allowChange, })