16 lines
333 B
Ruby
16 lines
333 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ErrorTracking
|
|
class IssueLatestEventService < ErrorTracking::BaseService
|
|
private
|
|
|
|
def fetch
|
|
project_error_tracking_setting.issue_latest_event(issue_id: params[:issue_id])
|
|
end
|
|
|
|
def parse_response(response)
|
|
{ latest_event: response[:latest_event] }
|
|
end
|
|
end
|
|
end
|