mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-16 19:19:23 +08:00
Replaced mock service with actual database query function in SearchMsg
This commit is contained in:
parent
8aa870ce3f
commit
3a9ca98260
@ -13,7 +13,7 @@ type msgServer struct {
|
||||
|
||||
func (s *msgServer) SearchMsg(ctx context.Context, req *pb.SearchMsgReq) (*pb.SearchMsgResp, error) {
|
||||
// Assume that chatLogs is the result of the database query that retrieves the chatLogs
|
||||
chatLogs, err := service.NewMsgService().SearchMsg(ctx, req)
|
||||
chatLogs, err := service.NewMsgService().SearchMsgFromDB(ctx, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user