This commit is contained in:
David Arranz 2019-11-02 22:57:07 +01:00
parent 9fbd11b169
commit bac0065413

View File

@ -37,7 +37,7 @@ module.exports = function (sequelize, DataTypes) {
});
Notification.associate = function (models) {
Notification.User = Notification.belongsTo(models.User, { foreignKey: 'userId', as: "user" });
//Notification.User = Notification.belongsTo(models.User, { foreignKey: 'userId', as: "user" });
Notification.Details = Notification.hasMany(models.NotificationDetail, { foreignKey: 'notificationId', as: 'details' });
};