Pārlūkot izejas kodu

Change wrong variable name

sbkwgh 8 gadi atpakaļ
vecāks
revīzija
e1a26d56b5
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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)
 			}
 		}
 	})