mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
Move jobs to api hosted service w/ quartz
This commit is contained in:
@ -126,9 +126,15 @@ namespace Bit.Api
|
||||
config.Filters.Add(new ModelStateValidationFilterAttribute());
|
||||
}).AddJsonOptions(o => o.SerializerSettings.ContractResolver = new DefaultContractResolver());
|
||||
|
||||
// PDF generation
|
||||
if(!globalSettings.SelfHosted)
|
||||
if(globalSettings.SelfHosted)
|
||||
{
|
||||
// Jobs service
|
||||
Jobs.JobsHostedService.AddJobsServices(services);
|
||||
services.AddHostedService<Jobs.JobsHostedService>();
|
||||
}
|
||||
else
|
||||
{
|
||||
// PDF generation
|
||||
services.AddJsReport(new jsreport.Local.LocalReporting()
|
||||
.UseBinary(jsreport.Binary.JsReportBinary.GetBinary())
|
||||
.AsUtility()
|
||||
|
Reference in New Issue
Block a user