back err_name (#1976)

Signed-off-by: xuan <146319162+wxuanF@users.noreply.github.com>
This commit is contained in:
xuan
2024-03-04 11:18:38 +08:00
committed by GitHub
parent 57331182c2
commit 1ef26b29a7
11 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -123,11 +123,11 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbuser.UpdateUserI
if err != nil {
return nil, err
}
if callbackErr := CallbackBeforeUpdateUserInfo(ctx, req); callbackErr != nil {
if err := CallbackBeforeUpdateUserInfo(ctx, req); err != nil {
return nil, err
}
data := convert.UserPb2DBMap(req.UserInfo)
if updateErr := s.UpdateByMap(ctx, req.UserInfo.UserID, data); updateErr != nil {
if err := s.UpdateByMap(ctx, req.UserInfo.UserID, data); err != nil {
return nil, err
}
_ = s.friendNotificationSender.UserInfoUpdatedNotification(ctx, req.UserInfo.UserID)