mirror of
https://github.com/bitwarden/server.git
synced 2025-07-26 03:51:09 -05:00

* Moved license models to billing * Moved LicensingService to billing * Moved license command and queries to billing * Moved LicenseController to billing
24 lines
575 B
C#
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();
|
|
}
|
|
}
|