Update notification_listener.rb

This commit is contained in:
Muhsin Keloth
2024-04-01 16:37:21 +05:30
parent 3d7d68c1bd
commit fcd7460ca1
+5
View File
@@ -33,6 +33,11 @@ class NotificationListener < BaseListener
return if event.data[:notifiable_assignee_change].blank?
return if conversation.pending?
if assignee.nil?
Rail.logger.error "[NotificationListener] Assignee is nil, skipping notification creation for #{conversation.id}"
return
end
NotificationBuilder.new(
notification_type: 'conversation_assignment',
user: assignee,