Skip to content

Commit

Permalink
411709: Provide services only for service filter
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmypixel committed Jan 14, 2025
1 parent 393f0d4 commit 7c9180c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ protected override List<CreateIndexModel<DeployableArtifact>> DefineIndexes(
public async Task<ServiceFilters> GetAllServicesFilters(CancellationToken ct)
{
var serviceNames = await Collection
.Distinct(d => d.ServiceName, FilterDefinition<DeployableArtifact>.Empty, cancellationToken: ct)
.Distinct(d => d.ServiceName, d => d.RunMode == ArtifactRunMode.Service.ToString().ToLower(),
cancellationToken: ct)
.ToListAsync(ct);

return new ServiceFilters { Services = serviceNames };
Expand Down

0 comments on commit 7c9180c

Please sign in to comment.