Skip to content

Commit

Permalink
Serialize stats call
Browse files Browse the repository at this point in the history
  • Loading branch information
DraviaVemal committed Aug 1, 2024
1 parent d0d41b2 commit 7f599b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Global/Models/2007/PrivacyProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Text;
using System.Reflection;
using Newtonsoft.Json;
using System.Threading.Tasks;

namespace OpenXMLOffice.Global_2007
{
Expand Down Expand Up @@ -167,10 +168,10 @@ protected void SendAnonymousSaveStates(AssemblyName assemblyName)
{
// TODO : Collect used components details but without invading into too much details
}
SendPostData(JsonConvert.SerializeObject(statsPayload));
SendPostData(JsonConvert.SerializeObject(statsPayload)).GetAwaiter().GetResult();
}

private async void SendPostData(string jsonDataToSend)
private async Task SendPostData(string jsonDataToSend)
{
// Return If All Status sharing are blocked
if (!ShareComponentRelatedDetails && !ShareOsHardwareDetails &&
Expand Down

0 comments on commit 7f599b4

Please sign in to comment.