Skip to content

Commit

Permalink
fix serialization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ligtenberg committed Feb 19, 2024
1 parent 9ce2234 commit 60c6646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/API/CloudRepublic.BenchMark.API.V2/GetStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public async Task<HttpResponseData> RunAsync([HttpTrigger(AuthorizationLevel.Ano
await errorResponse.WriteAsJsonAsync(validationErrors);
}

var convertedData = await responseCacheService.RunBenchMarksAsync(cloudProvider.Value, hostingEnvironment.Value, runtime.Value, language.Value, sku);
var serializedData = await responseCacheService.RunBenchMarksAsync(cloudProvider.Value, hostingEnvironment.Value, runtime.Value, language.Value, sku);

var response = req.CreateResponse(HttpStatusCode.OK);
response.Headers.Add("Content-Type", "application/json");
await response.WriteStringAsync(JsonSerializer.Serialize(convertedData, StatisticsSerializerContext.Default.BenchMarkData));
await response.WriteStringAsync(serializedData);

return response;
}
Expand Down

0 comments on commit 60c6646

Please sign in to comment.