Skip to content

Commit

Permalink
fix(MPI): Cambia el control de parametros para busqueda de pacientes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
silviroa authored Sep 23, 2022
1 parent d616c68 commit 4a394aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-v2/mpi/paciente/paciente.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const get = async (req: Request, res: Response) => {
const pacientes = await multimatch(req.query.search, conditions, options);
return res.json(pacientes);
} else {
if (req.query.length) {
if (Object.keys(req.query).length) {
const conditions = req.query;
const pacientes = await PacienteCtr.search(conditions, options, req);
return res.json(pacientes);
Expand Down

0 comments on commit 4a394aa

Please sign in to comment.