This commit is contained in:
2022-05-06 09:34:25 -05:00
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ const obtenerAlumno = async (numeroCuenta) => {
})
.catch((err) => {
conn.end();
throw new Error('Hubo un problema con el querry.' + err);
throw new Error('Hubo un problema, intenta más tarde.');
});
};
+1 -5
View File
@@ -1,9 +1,5 @@
const { Op } = require('sequelize');
const TipoCarrito = require('../../db/tablas/TipoCarrito');
const get = async () =>
TipoCarrito.findAll({
where: { [Op.or]: [{ idTipoCarrito: 1 }, { idTipoCarrito: 2 }] },
});
const get = async () => TipoCarrito.findAll();
module.exports = get;