diff --git a/BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs b/BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs index ad04f90e..bb3df73d 100644 --- a/BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs +++ b/BBWY.Server.Business/PlatformSDK/APIExecutionTimesRecorder.cs @@ -28,7 +28,7 @@ namespace BBWY.Server.Business public void Flush() { - var currentRoundList = apiDictionary.Select(kv => new { Api = kv.Key, Count = kv.Value }); + var currentRoundList = apiDictionary.Select(kv => new { Api = kv.Key, Count = kv.Value }).ToList(); apiDictionary.Clear(); var currentRoundKeyList = currentRoundList.Select(x => x.Api).ToList(); var today = DateTime.Now.Date;