Se arrgla para que coja todos los inscritos onsite y los antiguos

This commit is contained in:
David Arranz 2022-11-10 16:07:39 +01:00
parent cd8bed016d
commit 3e7d9ecbf1
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ module.exports = function (sequelize, DataTypes) {
type: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: "regular", //grupal, invitacion-regular, invitation-grupal, online, online group, onsite, onsite group
defaultValue: "onsite", //grupal, invitacion-regular, invitation-grupal, online, online group, onsite, onsite group
},
source: {
type: DataTypes.STRING, //app, web

View File

@ -281,7 +281,7 @@ const extraMethods = {
models.EventInscription.findAll({
where: {
eventId: eventId,
type: "regular",
type: ["onsite", "onsite group", "regular", "reservation"],
},
include: [
{