diff --git a/src/backend/function/Fusion.Resources.Functions/ApiClients/ApiModels/Notifications.cs b/src/backend/function/Fusion.Resources.Functions/ApiClients/ApiModels/Notifications.cs index 10ffbf3e4..0082c9792 100644 --- a/src/backend/function/Fusion.Resources.Functions/ApiClients/ApiModels/Notifications.cs +++ b/src/backend/function/Fusion.Resources.Functions/ApiClients/ApiModels/Notifications.cs @@ -1,4 +1,5 @@ using System; +using AdaptiveCards; using Newtonsoft.Json; namespace Fusion.Resources.Functions.ApiClients.ApiModels; @@ -11,5 +12,5 @@ public class SendNotificationsRequest [JsonProperty("description")] public string Description { get; set; } - [JsonProperty("card")] public object Card { get; set; } + [JsonProperty("card")] public AdaptiveCard Card { get; set; } } diff --git a/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs b/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs index 48c0cb8af..a1c941338 100644 --- a/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs +++ b/src/backend/function/Fusion.Resources.Functions/Functions/Notifications/ScheduledReportContentBuilderFunction.cs @@ -188,7 +188,7 @@ private async Task BuildContentForResourceOwner(Guid azureUniqueId, string fullD { Title = $"Weekly summary - {fullDepartment}", EmailPriority = 1, - Card = card, + Card = card.Result, Description = $"Weekly report for department - {fullDepartment}" }, azureUniqueId); diff --git a/src/backend/function/Fusion.Resources.Functions/Fusion.Resources.Functions.csproj b/src/backend/function/Fusion.Resources.Functions/Fusion.Resources.Functions.csproj index eb55b98d5..ea531e0c5 100644 --- a/src/backend/function/Fusion.Resources.Functions/Fusion.Resources.Functions.csproj +++ b/src/backend/function/Fusion.Resources.Functions/Fusion.Resources.Functions.csproj @@ -5,7 +5,7 @@ <_FunctionsSkipCleanOutput>true - +