feature: Upload Online Attachments

This commit is contained in:
Gary Sharp
2025-06-15 17:56:13 +10:00
parent 6e2c36d4ae
commit cc1f224456
9 changed files with 395 additions and 22 deletions
@@ -50,7 +50,7 @@ namespace Disco.Services.Interop.DiscoServices
{
localExpires = tokenExpires;
localToken = token;
if (tokenExpires != null && tokenExpires.Value < DateTime.UtcNow && localToken != null)
if (tokenExpires != null && tokenExpires.Value > DateTime.UtcNow && localToken != null)
return localToken;
if (!IsActivated)
@@ -58,7 +58,7 @@ namespace Disco.Services.Interop.DiscoServices
using (var httpClient = new HttpClient())
{
httpClient.BaseAddress = ActivationService.BaseUrl;
httpClient.BaseAddress = DiscoServiceHelpers.ActivationServiceUrl;
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var timeStamp = DateTime.UtcNow.ToUnixEpoc();