mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
Merge pull request #5306 from aignatov-bio/ai-sci-8317-fix-messages-filter-in-notification-flyout
Fix messages filter in notifcation flyout [SCI-8317]
This commit is contained in:
commit
ea4fe49699
1 changed files with 2 additions and 2 deletions
|
@ -15,11 +15,11 @@ class UserNotificationsController < ApplicationController
|
|||
end
|
||||
|
||||
UserNotification.where(
|
||||
notification_id: notifications.where.not(type_of: 2).select(:id)
|
||||
notification_id: notifications.except(:select).where.not(type_of: 2).select(:id)
|
||||
).seen_by_user(current_user)
|
||||
|
||||
current_user.user_system_notifications.where(
|
||||
system_notification_id: notifications.where(type_of: 2).select(:id)
|
||||
system_notification_id: notifications.except(:select).where(type_of: 2).select(:id)
|
||||
).mark_as_seen
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue