dos olvidadas
This commit is contained in:
parent
b69dd68dff
commit
1362478998
@ -18,7 +18,7 @@ routes.post('/auth',
|
||||
);
|
||||
|
||||
routes.post('/register',
|
||||
SchemaValidator(authValidation.RegisterInputType, true),
|
||||
//SchemaValidator(authValidation.RegisterInputType, true),
|
||||
AccessValidator.isRegisteredUserPhone,
|
||||
authController.register,
|
||||
);
|
||||
|
||||
@ -88,7 +88,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||
|
||||
Event.associate = function (models) {
|
||||
Event.OverflowEvent = Event.belongsTo(models.Event, {
|
||||
as: 'EventTo',
|
||||
as: 'EventToEvent',
|
||||
foreignKey: 'overflow_eventId' });
|
||||
Event.EventType = Event.belongsTo(models.EventType, { foreignKey: 'typeId' });
|
||||
Event.UserCreate = Event.belongsTo(models.User, { foreignKey: 'userId' });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user