mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 04:34:06 +08:00
Update users selection for notifications [SCI-6110] (#3573)
This commit is contained in:
parent
982aaf887c
commit
116c09cd8a
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ module GenerateNotificationModel
|
|||
when Project
|
||||
users = subject.users
|
||||
when Experiment
|
||||
users = subject.project.users
|
||||
users = subject.users
|
||||
when MyModule
|
||||
users = subject.users
|
||||
# Also send to the user that was unassigned,
|
||||
|
|
|
@ -56,7 +56,7 @@ class MyModule < ApplicationRecord
|
|||
has_many :repository_rows, through: :my_module_repository_rows
|
||||
has_many :repository_snapshots, dependent: :destroy, inverse_of: :my_module
|
||||
has_many :user_my_modules, inverse_of: :my_module, dependent: :destroy
|
||||
has_many :users, through: :user_my_modules
|
||||
has_many :users, through: :user_assignments
|
||||
has_many :report_elements, inverse_of: :my_module, dependent: :destroy
|
||||
has_many :protocols, inverse_of: :my_module, dependent: :destroy
|
||||
# Associations for old activity type
|
||||
|
|
Loading…
Reference in a new issue