diff --git a/service/notifier/notifier.go b/service/notifier/notifier.go index 1aad0ad7..cd930d24 100644 --- a/service/notifier/notifier.go +++ b/service/notifier/notifier.go @@ -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(¬ification) // TODO: Email notification } }