mp_issues 新增对product id 处理

This commit is contained in:
呱呱呱 2023-10-18 16:37:35 +08:00
parent f6ffaa82a6
commit 2e43bab1b5
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ class Api::V1::PmIssuesController < ApplicationController
before_action :require_login, except: [:index, :show]
def create
project = Project.new( id: 0, user_id: current_user.id, name:"pm_mm", identifier:"pm_mm" )
project = Project.find_by_id(params[:project_id]) || Project.new( id: 0, user_id: current_user.id, name:"pm_mm", identifier:"pm_mm" )
@object_result = Api::V1::Issues::CreateService.call(project, issue_params, current_user)
end