修改项目申请相关BUG

This commit is contained in:
yuanke 2016-08-11 15:06:32 +08:00
parent c26e2a9acc
commit 96bc405a19
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class ProjectsService
status = member.member_roles[0].role_id
#将之前的申请都改为已拒绝
applied_messages = AppliedMessage.where(:project_id => project.id, :status => 1, :applied_user_id=>current_user.id,:applied_type => "AppliedProject")
applied_messages = AppliedMessage.where(:project_id => project.id, :status => true, :applied_user_id=>current_user.id,:applied_type => "AppliedProject")
applied_messages.update_all(:status=>5)
else
if params[:invite_code].present?