diff --git a/internal/adapter/grpc/grpc.go b/internal/adapter/grpc/grpc.go index 4dd15cb..95787fb 100644 --- a/internal/adapter/grpc/grpc.go +++ b/internal/adapter/grpc/grpc.go @@ -26,7 +26,7 @@ func (a Adapter) CeduladosByCedula(ctx context.Context, req *cedulados.QueryByCe } func (a Adapter) CeduladosGetByNameLastName(ctx context.Context, req *cedulados.QueryByNameLastNameRequest) (*cedulados.QueryMultipleResponse, error) { - cL, err := a.api.CeduladosGetByNameLastName(ctx, req.Name, req.Apellido_1, req.Apellido_2, req.Page) + cL, err := a.api.CeduladosByNameLastName(ctx, req.Name, req.Apellido_1, req.Apellido_2, req.Page) if err != nil { return nil, err } @@ -43,7 +43,7 @@ func (a Adapter) CeduladosGetByNameLastName(ctx context.Context, req *cedulados. return list, nil } func (a Adapter) CeduladosByFTS(ctx context.Context, req *cedulados.QueryByFTSRequest) (*cedulados.QueryMultipleResponse, error) { - cL, err := a.api.CeduladosGetByFTS(ctx, req.Name, req.Page) + cL, err := a.api.CeduladosByFTS(ctx, req.Name, req.Page) if err != nil { return nil, err } diff --git a/internal/application/core/api/api.go b/internal/application/core/api/api.go index 1350e86..413480c 100644 --- a/internal/application/core/api/api.go +++ b/internal/application/core/api/api.go @@ -31,7 +31,7 @@ func (a Application) CeduladosByCedula( ctx context.Context, cedula *domain.Cedu } // GetByNameLastName // Query db by name, lastname -func (a Application) CeduladosGetByNameLastName(ctx context.Context, nombre, apellido1, apellido2 string, page int64) (*domain.MultipleResults, error) { +func (a Application) CeduladosByNameLastName(ctx context.Context, nombre, apellido1, apellido2 string, page int64) (*domain.MultipleResults, error) { return a.infoDB.GetByNameLastName(ctx, nombre, apellido1, apellido2, page) } // GetByFTS