Browse Source

修复

pull/342/head
yystopf 3 years ago
parent
commit
4c26085e58
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/services/api/v1/issues/journals/create_service.rb
  2. +1
    -1
      app/services/api/v1/issues/journals/update_service.rb

+ 1
- 1
app/services/api/v1/issues/journals/create_service.rb View File

@@ -67,7 +67,7 @@ class Api::V1::Issues::Journals::CreateService < ApplicationService

def build_atme_participants
@atme_receivers.each do |receiver|
@created_issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
@issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
end
end
end

+ 1
- 1
app/services/api/v1/issues/journals/update_service.rb View File

@@ -48,7 +48,7 @@ class Api::V1::Issues::Journals::UpdateService < ApplicationService

def build_atme_participants
@atme_receivers.each do |receiver|
@created_issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
@issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
end
end


Loading…
Cancel
Save