fixed 组织成员数取组织内成员和组织所有仓库成员组合,加入时间
This commit is contained in:
parent
627332e93a
commit
036acfc43d
|
@ -7,7 +7,7 @@ json.team_names user.teams.where("teams.organization_id=?", organization.id).plu
|
|||
join_date = if user.organization_users.find_by(:organization_id => organization.id).present?
|
||||
user.organization_users.find_by(:organization_id => organization.id).created_at.strftime("%Y-%m-%d")
|
||||
elsif user.members.joins(:project).find_by(project: organization.projects).present?
|
||||
user.members.joins(:project).find_by(project: organization.projects).created_at.strftime("%Y-%m-%d")
|
||||
user.members.joins(:project).find_by(project: organization.projects).created_on.strftime("%Y-%m-%d")
|
||||
else
|
||||
user.created_on.strftime("%Y-%m-%d")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue