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: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: false,
|
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: {
|
source: {
|
||||||
type: DataTypes.STRING, //app, web
|
type: DataTypes.STRING, //app, web
|
||||||
|
|||||||
@ -281,7 +281,7 @@ const extraMethods = {
|
|||||||
models.EventInscription.findAll({
|
models.EventInscription.findAll({
|
||||||
where: {
|
where: {
|
||||||
eventId: eventId,
|
eventId: eventId,
|
||||||
type: "regular",
|
type: ["onsite", "onsite group", "regular", "reservation"],
|
||||||
},
|
},
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user