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
1 changed files with 1 additions and 1 deletions

View File

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