This commit is contained in:
2022-03-07 12:52:15 -06:00
parent 02ec8c2b73
commit 96e5121119
+5 -1
View File
@@ -1,5 +1,9 @@
const { Op } = require('sequelize');
const TipoCarrito = require('../../db/tablas/TipoCarrito');
const get = async () => TipoCarrito.findAll({ where: { idTipoCarrito: 1 } });
const get = async () =>
TipoCarrito.findAll({
where: { [Op.or]: [{ idTipoCarrito: 1 }, { idTipoCarrito: 2 }] },
});
module.exports = get;