Skip to content

Commit 7d052a7

Browse files
fix: Update response serialisation for demographic record in RetrievePdsDemographic
1 parent 75320b4 commit 7d052a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/CohortManager/src/Functions/DemographicServices/RetrievePDSDemographic/RetrievePDSDemographic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public async Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Anonymou
8484
var upsertResult = await _pdsProcessor.UpsertDemographicRecordFromPDS(participantDemographic);
8585

8686
return upsertResult ?
87-
_createResponse.CreateHttpResponse(HttpStatusCode.OK, req, JsonSerializer.Serialize(participantDemographic)) :
87+
_createResponse.CreateHttpResponse(HttpStatusCode.OK, req, JsonSerializer.Serialize(participantDemographic.ToDemographic())) :
8888
_createResponse.CreateHttpResponse(HttpStatusCode.InternalServerError, req);
8989
}
9090
catch (Exception ex)

0 commit comments

Comments
 (0)