mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
19 lines
725 B
C#
19 lines
725 B
C#
|
|
using Bit.Core.AdminConsole.Entities;
|
|||
|
|
using Bit.Core.AdminConsole.EventIntegrations.OrganizationIntegrations.Interfaces;
|
|||
|
|
using Bit.Core.Repositories;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.AdminConsole.EventIntegrations.OrganizationIntegrations;
|
|||
|
|
|
|||
|
|
/// <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();
|
|||
|
|
}
|
|||
|
|
}
|