mini cambios
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user