Skip to content

Commit

Permalink
feat(rup): patch paciente para obra social (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
liquid36 authored May 27, 2021
1 parent c439e3a commit 68e57d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/rup/routes/prestacion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ router.patch('/prestaciones/:id', (req: Request, res, next) => {
if (req.body.solicitud) {
data.solicitud = req.body.solicitud;
}

if (req.body.paciente) {
data.paciente = req.body.paciente;
}
}
break;
case 'informeIngreso':
Expand Down Expand Up @@ -686,7 +690,7 @@ EventCore.on('rup:prestacion:validate', async (prestacion: IPrestacionDoc) => {
}
}
}
await Prestacion.updateOne( { _id: prestacion.id} , { $set: { tags } });
await Prestacion.updateOne({ _id: prestacion.id }, { $set: { tags } });
});

EventCore.on('rup:prestacion:romperValidacion', async (prestacion: IPrestacionDoc) => {
Expand Down

0 comments on commit 68e57d1

Please sign in to comment.