[FA-9] Need to add persistence layer
This commit is contained in:
15
FictionArchive.Service.SchedulerService/GraphQL/Query.cs
Normal file
15
FictionArchive.Service.SchedulerService/GraphQL/Query.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using FictionArchive.Service.SchedulerService.Models;
|
||||
using FictionArchive.Service.SchedulerService.Services;
|
||||
using HotChocolate;
|
||||
using Quartz;
|
||||
using Quartz.Impl.Matchers;
|
||||
|
||||
namespace FictionArchive.Service.SchedulerService.GraphQL;
|
||||
|
||||
public class Query
|
||||
{
|
||||
public async Task<IEnumerable<SchedulerJob>> GetJobs(JobManagerService jobManager)
|
||||
{
|
||||
return await jobManager.GetScheduledJobs();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user