This commit is contained in:
sylor_huang@126.com 2020-07-15 21:30:52 +08:00
parent b26059bf48
commit fd2d34834a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class SyncProjectsJob < ApplicationJob
if target_type == "Issue"
is_exists = Issue.exists?(author_id: u_id, project_id: re[:target_params][:project_id], subject: re[:target_params][:subject])
unless is_exists
version_name = re[:target_params][:re_version]
version_name = re[:re_version]
version_id = Version.where(project_id: re[:target_params][:project_id], name: version_name)&.first&.id if version_name.present?
assing_u_id = User.select(:id, :login).where(login: re[:assign_login]).pluck(:id).first
new_target = target_type.constantize.new(re[:target_params].merge(author_id: u_id))