Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fixed unassigned value

Cette révision appartient à :
akuma06 2017-05-21 00:29:07 +02:00
Parent 0390fc5215
révision 42de73fa78
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -10,7 +10,7 @@ func NotifyUser(user *model.User, name string, msg string, url string) {
if (user.ID > 0) {
notification := model.NewNotification(name, msg, url)
notification.UserID = user.ID
db.ORM.Save(notification)
db.ORM.Create(&notification)
// TODO: Email notification
}
}