mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: user args check
This commit is contained in:
parent
0622ac7eb7
commit
af951d8208
@ -117,9 +117,6 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbuser.UpdateUserI
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
data := convert.UserPb2DBMap(req.UserInfo)
|
data := convert.UserPb2DBMap(req.UserInfo)
|
||||||
if len(data) == 0 {
|
|
||||||
return nil, errs.ErrArgs.Wrap("no data to update")
|
|
||||||
}
|
|
||||||
if err := s.UpdateByMap(ctx, req.UserInfo.UserID, data); err != nil {
|
if err := s.UpdateByMap(ctx, req.UserInfo.UserID, data); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user