diff --git a/app/services/projects_service.rb b/app/services/projects_service.rb index 4980cd03a..913200ae5 100644 --- a/app/services/projects_service.rb +++ b/app/services/projects_service.rb @@ -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?