From be49da9105ae4b33ec6d88cc1234ca5168df994e Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 24 May 2018 10:00:15 +0800 Subject: [PATCH] FIX: Don't silently fail if notification fails to create. --- app/services/post_alerter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/post_alerter.rb b/app/services/post_alerter.rb index 66648a69ee0..d5539e34c6f 100644 --- a/app/services/post_alerter.rb +++ b/app/services/post_alerter.rb @@ -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,