fix: fix the getSortedConversation api

This commit is contained in:
luhaoling
2024-01-09 18:58:17 +08:00
parent 89b59eb82e
commit 159822e207
2 changed files with 14 additions and 2 deletions
+5
View File
@@ -429,6 +429,11 @@ func (s *userServer) AddNotificationAccount(ctx context.Context, req *pbuser.Add
if req.UserID == "" {
return nil, errs.ErrInternalServer.Wrap("gen user id failed")
}
} else {
_, err := s.UserDatabase.FindWithError(ctx, []string{req.UserID})
if err == nil {
return nil, errs.ErrArgs.Wrap("userID is used")
}
}
user := &tablerelation.UserModel{