Commit b3a5f0a7 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix wrong parameter order in Team#team_member_by_name_or_email

parent 51ef5b92
module Team module Team
def team_member_by_name_or_email(email = nil, name = nil) def team_member_by_name_or_email(name = nil, email = nil)
user = users.where("email like ? or name like ?", email, name).first user = users.where("name like ? or email like ?", name, email).first
users_projects.find_by_user_id(user.id) if user users_projects.where(user: user) if user
end end
# Get Team Member record by user id # Get Team Member record by user id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment