FIX: Don't silently fail if notification fails to create.

This commit is contained in:
Guo Xiang Tan 2018-05-24 10:00:15 +08:00
parent ebd966fbdb
commit be49da9105

View File

@ -379,7 +379,7 @@ class PostAlerter
end end
# Create the notification # Create the notification
created = user.notifications.create( created = user.notifications.create!(
notification_type: type, notification_type: type,
topic_id: post.topic_id, topic_id: post.topic_id,
post_number: post.post_number, post_number: post.post_number,