From bac0065413d233e99f4c89fffe43b7769b055a7b Mon Sep 17 00:00:00 2001 From: david Date: Sat, 2 Nov 2019 22:57:07 +0100 Subject: [PATCH] . --- modules/notification/notification.model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notification/notification.model.js b/modules/notification/notification.model.js index 469ec2f..eb8e66c 100644 --- a/modules/notification/notification.model.js +++ b/modules/notification/notification.model.js @@ -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' }); };