mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
fixes project duplication [fixes SCI-2486]
This commit is contained in:
parent
4092e0da44
commit
2def874ffd
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ class User < ApplicationRecord
|
|||
{ created_at: :desc }
|
||||
end
|
||||
|
||||
result.where(archived: false).order(sort)
|
||||
result.where(archived: false).distinct.order(sort)
|
||||
end
|
||||
|
||||
# Finds all activities of user that is assigned to project. If user
|
||||
|
|
Loading…
Reference in a new issue