Skip to content

Commit

Permalink
perf: only forward the questionnaire resource (#8521)
Browse files Browse the repository at this point in the history
The other resources need not be forwarded as we are only
updating the questionnaire resource.
  • Loading branch information
Zangetsu101 authored Jan 30, 2025
1 parent af2032b commit c4deca1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/workflow/src/records/handler/update-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ export async function updateField(

const updatedRecord = {
...savedRecord,
entry: [
...savedRecord.entry.filter(
({ resource }) => !isQuestionnaireResponse(resource)
),
updatedQuestionnaireResponseResource
]
entry: [updatedQuestionnaireResponseResource]
}

await sendBundleToHearth(updatedRecord)
Expand Down

0 comments on commit c4deca1

Please sign in to comment.