diff --git a/AzureAdvocates.Functions/AzureAdvocates.Functions.csproj b/AzureAdvocates.Functions/AzureAdvocates.Functions.csproj index fb43669..ed3addf 100644 --- a/AzureAdvocates.Functions/AzureAdvocates.Functions.csproj +++ b/AzureAdvocates.Functions/AzureAdvocates.Functions.csproj @@ -6,7 +6,7 @@ enable - + diff --git a/GitHubReadmeWebTrends.Common/GitHubReadmeWebTrends.Common.csproj b/GitHubReadmeWebTrends.Common/GitHubReadmeWebTrends.Common.csproj index e2c4690..620697e 100644 --- a/GitHubReadmeWebTrends.Common/GitHubReadmeWebTrends.Common.csproj +++ b/GitHubReadmeWebTrends.Common/GitHubReadmeWebTrends.Common.csproj @@ -8,10 +8,10 @@ - + - + diff --git a/GitHubReadmeWebTrends.Functions/Functions/GetAdvocatesForPowerBIDashboard.cs b/GitHubReadmeWebTrends.Functions/Functions/GetAdvocatesForPowerBIDashboard.cs index 470b97a..ca8d09e 100644 --- a/GitHubReadmeWebTrends.Functions/Functions/GetAdvocatesForPowerBIDashboard.cs +++ b/GitHubReadmeWebTrends.Functions/Functions/GetAdvocatesForPowerBIDashboard.cs @@ -29,9 +29,9 @@ public async IAsyncEnumerable RunHttpTrigger([HttpTri if (advocate is null) continue; - var gitHubUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("GitHub", StringComparison.OrdinalIgnoreCase))?.Url ?? throw new Exception($"Missing GitHub Uri for {advocate.Name}"); - var twitterUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("Twitter", StringComparison.OrdinalIgnoreCase))?.Url ?? throw new Exception($"Missing Twitter Uri for {advocate.Name}"); - var linkedInUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("LinkedIn", StringComparison.OrdinalIgnoreCase))?.Url ?? throw new Exception($"Missing LinkedIn Uri for {advocate.Name}"); + var gitHubUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("GitHub", StringComparison.OrdinalIgnoreCase))?.Url; + var twitterUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("Twitter", StringComparison.OrdinalIgnoreCase))?.Url; + var linkedInUri = advocate.Connect.SingleOrDefault(x => x.Title.Contains("LinkedIn", StringComparison.OrdinalIgnoreCase))?.Url; yield return new CloudAdvocatePowerBIModel(advocate.Name, advocate.Metadata.Alias, gitHubUri, twitterUri, linkedInUri); } diff --git a/GitHubReadmeWebTrends.Functions/GitHubReadmeWebTrends.Functions.csproj b/GitHubReadmeWebTrends.Functions/GitHubReadmeWebTrends.Functions.csproj index b9e915d..f07f5e2 100644 --- a/GitHubReadmeWebTrends.Functions/GitHubReadmeWebTrends.Functions.csproj +++ b/GitHubReadmeWebTrends.Functions/GitHubReadmeWebTrends.Functions.csproj @@ -10,7 +10,7 @@ - + diff --git a/GitHubReadmeWebTrends.Functions/Models/CloudAdvocatePowerBIModel.cs b/GitHubReadmeWebTrends.Functions/Models/CloudAdvocatePowerBIModel.cs index 71400f0..0072cd9 100644 --- a/GitHubReadmeWebTrends.Functions/Models/CloudAdvocatePowerBIModel.cs +++ b/GitHubReadmeWebTrends.Functions/Models/CloudAdvocatePowerBIModel.cs @@ -4,7 +4,7 @@ namespace GitHubReadmeWebTrends.Functions { public class CloudAdvocatePowerBIModel { - public CloudAdvocatePowerBIModel(string name, string alias, Uri gitHub, Uri twitter, Uri linkedIn) + public CloudAdvocatePowerBIModel(string name, string alias, Uri? gitHub, Uri? twitter, Uri? linkedIn) { Name = name; Alias = alias; @@ -15,8 +15,8 @@ public CloudAdvocatePowerBIModel(string name, string alias, Uri gitHub, Uri twit public string Name { get; } public string Alias { get; } - public Uri GitHub { get; } - public Uri Twitter { get; } - public Uri LinkedIn { get; } + public Uri? GitHub { get; } + public Uri? Twitter { get; } + public Uri? LinkedIn { get; } } } diff --git a/GitHubReadmeWebTrends.Website/GitHubReadmeWebTrends.Website.csproj b/GitHubReadmeWebTrends.Website/GitHubReadmeWebTrends.Website.csproj index a6bf534..283bfd7 100644 --- a/GitHubReadmeWebTrends.Website/GitHubReadmeWebTrends.Website.csproj +++ b/GitHubReadmeWebTrends.Website/GitHubReadmeWebTrends.Website.csproj @@ -14,7 +14,7 @@ - - + +