diff --git a/SSW.Rules.AzFuncs/Functions/Widget/GetLatestRules.cs b/SSW.Rules.AzFuncs/Functions/Widget/GetLatestRules.cs index 72623a4..e289ac8 100644 --- a/SSW.Rules.AzFuncs/Functions/Widget/GetLatestRules.cs +++ b/SSW.Rules.AzFuncs/Functions/Widget/GetLatestRules.cs @@ -29,6 +29,8 @@ public async Task Run( var filteredRules = rules .Where(r => string.IsNullOrEmpty(githubUsername) || r.GitHubUsername == githubUsername || r.CreatedBy == githubUsername || r.UpdatedBy == githubUsername) + .GroupBy(r => r.RuleGuid) + .Select(group => group.First()) .OrderByDescending(r => r.UpdatedAt) .Skip(skip) .Take(take);