fix: fix the GetSortedConversationList (#1725)

* fix: improve the GetSortedConversation api

* fix: fix the go.mod

* fix: fix the valiable name
This commit is contained in:
Brabem
2024-01-10 10:55:55 +08:00
committed by GitHub
parent a2a082f681
commit 1c72e46cc9
6 changed files with 29 additions and 17 deletions
+5
View File
@@ -539,6 +539,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{