From 403bce6f5f541802cc84fd374a66d240c57f4614 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 18 Aug 2021 10:45:29 +0200 Subject: [PATCH] Fixed creating notifications when users are inactive [SCI-5938] --- app/helpers/notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 897d46c3a..208456ac2 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -25,7 +25,7 @@ module NotificationsHelper ) if target_user.assignments_notification - UserNotification.create(notification: notification, user: target_user) + notification.create_user_notification(target_user) end end end