✨ Add billing
This commit is contained in:
12
DysonNetwork.Insight/Startup/TokenBillingJob.cs
Normal file
12
DysonNetwork.Insight/Startup/TokenBillingJob.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using DysonNetwork.Insight.Thought;
|
||||
using Quartz;
|
||||
|
||||
namespace DysonNetwork.Insight.Startup;
|
||||
|
||||
public class TokenBillingJob(ThoughtService thoughtService, ILogger<TokenBillingJob> logger) : IJob
|
||||
{
|
||||
public async Task Execute(IJobExecutionContext context)
|
||||
{
|
||||
await thoughtService.SettleThoughtBills(logger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user