inscripciones del periodo
This commit is contained in:
@@ -7,7 +7,11 @@ const { validarNumeroEntero } = require('../../helper/validar');
|
||||
const todasInscripciones = async (body) => {
|
||||
const validacion = validarNumeroEntero(body.validacion, 'validacion', true);
|
||||
return Inscripcion.findAll({
|
||||
where: { validacion, cancelacion: 0 },
|
||||
where: {
|
||||
validacion,
|
||||
cancelacion: 0,
|
||||
idPeriodo: Number(process.env.PERIODO),
|
||||
},
|
||||
include: [
|
||||
{
|
||||
model: Usuario,
|
||||
|
||||
Reference in New Issue
Block a user