2025-12-30 10:59:19 -05:00
|
|
|
|
using Bit.Core.Dirt.Entities;
|
|
|
|
|
|
using Bit.Core.Dirt.EventIntegrations.OrganizationIntegrations.Interfaces;
|
|
|
|
|
|
using Bit.Core.Dirt.Repositories;
|
2025-12-05 15:28:07 -05:00
|
|
|
|
|
2025-12-30 10:59:19 -05:00
|
|
|
|
namespace Bit.Core.Dirt.EventIntegrations.OrganizationIntegrations;
|
2025-12-05 15:28:07 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Query implementation for retrieving organization integrations.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class GetOrganizationIntegrationsQuery(IOrganizationIntegrationRepository integrationRepository)
|
|
|
|
|
|
: IGetOrganizationIntegrationsQuery
|
|
|
|
|
|
{
|
|
|
|
|
|
public async Task<List<OrganizationIntegration>> GetManyByOrganizationAsync(Guid organizationId)
|
|
|
|
|
|
{
|
|
|
|
|
|
var integrations = await integrationRepository.GetManyByOrganizationAsync(organizationId);
|
|
|
|
|
|
return integrations.ToList();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|