Se arrgla para que coja todos los inscritos onsite y los antiguos
This commit is contained in:
parent
cd8bed016d
commit
3e7d9ecbf1
@ -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
|
||||
|
||||
@ -281,7 +281,7 @@ const extraMethods = {
|
||||
models.EventInscription.findAll({
|
||||
where: {
|
||||
eventId: eventId,
|
||||
type: "regular",
|
||||
type: ["onsite", "onsite group", "regular", "reservation"],
|
||||
},
|
||||
include: [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user