programas nuevos

This commit is contained in:
xXpuma99Xx
2022-03-14 15:08:05 -06:00
parent 1137eb5d91
commit 9af53a7859
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
const { Op } = require('sequelize');
const Programa = require('../../db/tablas/Programa');
const get = async () => Programa.findAll({ where: { idPrograma: 2 } });
const get = async () =>
Programa.findAll({
where: { [Op.or]: [{ idPrograma: 2 }, { idPrograma: 3 }] },
});
module.exports = get;