Skip to content

Commit

Permalink
WIP:
Browse files Browse the repository at this point in the history
- initialise` CalculationResult` so it can be use by `JourneyLoggerService`
  • Loading branch information
MazOneTwoOne committed Oct 11, 2024
1 parent efddaa4 commit a590248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/forms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def calculate_early_result
"gross_income_excess" => cfe_result.gross_income_excess,
"type" => "gross_income" } # I think we have to set this here so we have it in the session, when calling the `JourneyLoggerService`

@model = CalculationResult.new(session_data)
office_code = signed_in? && current_provider.present? ? current_provider.first_office_code : nil
JourneyLoggerService.call(assessment_id, calculation_result, @check, office_code, cookies)
JourneyLoggerService.call(assessment_id, @model, @check, office_code, cookies)
end
end
end

0 comments on commit a590248

Please sign in to comment.