mini cambios

This commit is contained in:
xXpuma99Xx
2022-02-13 13:34:54 -06:00
parent e23d4f15f5
commit 25d2112010
11 changed files with 38 additions and 65 deletions
@@ -13,17 +13,7 @@ const historialMultasEquipo = async (body) => {
{
model: Prestamo,
where: { idEquipo },
attributes: [
'idPrestamo',
'activo',
'horaMaxRecoger',
'horaInicio',
'horaFin',
'horaEntrega',
'canceladoUsuario',
'regresoInmediato',
'createdAt',
],
attributes: ['idPrestamo'],
},
{
model: Operador,
@@ -18,35 +18,25 @@ const historialMultasUsuario = async (body) => {
{
model: Prestamo,
where: { idUsuario },
include: [
{
model: Equipo,
include: [
{
model: Carrito,
include: [{ model: Modulo }, { model: TipoCarrito }],
attributes: ['idCarrito', 'carrito'],
},
],
attributes: [
'idEquipo',
'numeroSerie',
'numeroInventario',
'equipo',
],
},
],
attributes: [
'idPrestamo',
'activo',
'horaMaxRecoger',
'horaInicio',
'horaFin',
'horaEntrega',
'canceladoUsuario',
'regresoInmediato',
'createdAt',
],
// include: [
// {
// model: Equipo,
// include: [
// {
// model: Carrito,
// include: [{ model: Modulo }, { model: TipoCarrito }],
// attributes: ['idCarrito', 'carrito'],
// },
// ],
// attributes: [
// 'idEquipo',
// 'numeroSerie',
// 'numeroInventario',
// 'equipo',
// ],
// },
// ],
attributes: ['idPrestamo'],
},
{
model: Operador,