Skip to content

Commit

Permalink
R2-2649 - Reuse instance of the RecordDataService
Browse files Browse the repository at this point in the history
  • Loading branch information
dhernandez-quoin committed Oct 25, 2023
1 parent fcdec3f commit c97d21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/api/v2/children/create_family.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (c) 2014 - 2023 UNICEF. All rights reserved.

json.data do
json.merge! RecordDataService.new.embed_family_info(
json.merge! @record_data_service.embed_family_info(
{ id: @current_record.id }, @current_record, @selected_field_names, current_user
)

Expand Down

0 comments on commit c97d21f

Please sign in to comment.