Replaced mock service with actual database query function in SearchMsg

pull/864/head
sweep-ai[bot] 2 years ago committed by GitHub
parent 8aa870ce3f
commit 3a9ca98260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,7 @@ type msgServer struct {
func (s *msgServer) SearchMsg(ctx context.Context, req *pb.SearchMsgReq) (*pb.SearchMsgResp, error) { 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 // 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 { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save