1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-26 03:51:09 -05:00
Files
bitwarden/src/Api/Jobs/ValidateOrganizationsJob.cs
Conner Turnbull 9b65e9f4cc [PM-22580] Org/User License Codeownership Move (No logic changes) (#6080)
* Moved license models to billing

* Moved LicensingService to billing

* Moved license command and queries to billing

* Moved LicenseController to billing
2025-07-11 16:41:32 -04:00

24 lines
575 B
C#

using Bit.Core.Billing.Services;
using Bit.Core.Jobs;
using Quartz;
namespace Bit.Api.Jobs;
public class ValidateOrganizationsJob : BaseJob
{
private readonly ILicensingService _licensingService;
public ValidateOrganizationsJob(
ILicensingService licensingService,
ILogger<ValidateOrganizationsJob> logger)
: base(logger)
{
_licensingService = licensingService;
}
protected async override Task ExecuteJobAsync(IJobExecutionContext context)
{
await _licensingService.ValidateOrganizationsAsync();
}
}