12 lines
324 B
JavaScript
12 lines
324 B
JavaScript
const dbPath = '../../db/tablas';
|
|
const Prestamo = require(`${dbPath}/Prestamo`);
|
|
|
|
const diezMinutos = async (body) => {
|
|
return Prestamo.findAll({
|
|
where: { activo: true, idOperadorEntrega: null },
|
|
attributes: ['idPrestamo', 'activo', 'horaMaxRecoger', 'idOperadorEntrega'],
|
|
});
|
|
};
|
|
|
|
module.exports = diezMinutos;
|