Explorar o código

Change wrong variable name

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
e1a26d56b5
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      models/MentionNotification.js

+ 3 - 3
models/MentionNotification.js

@@ -2,9 +2,9 @@ module.exports = (sequelize, DataTypes) => {
 	let MentionNotification = sequelize.define('MentionNotification', {}, {
 		classMethods: {
 			associate (models) {
-				Notification.belongsTo(models.User)
-				Notification.belongsTo(models.Post)
-				Notification.belongsTo(models.Notification)
+				MentionNotification.belongsTo(models.User)
+				MentionNotification.belongsTo(models.Post)
+				MentionNotification.belongsTo(models.Notification)
 			}
 		}
 	})