dos olvidadas

This commit is contained in:
David Arranz 2019-07-09 10:51:27 +02:00
parent b69dd68dff
commit 1362478998
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ routes.post('/auth',
);
routes.post('/register',
SchemaValidator(authValidation.RegisterInputType, true),
//SchemaValidator(authValidation.RegisterInputType, true),
AccessValidator.isRegisteredUserPhone,
authController.register,
);

View File

@ -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' });