🐛 Fix quartz job registeration
This commit is contained in:
@@ -11,7 +11,7 @@ public class PresenceUpdateJob(
|
|||||||
public async Task Execute(IJobExecutionContext context)
|
public async Task Execute(IJobExecutionContext context)
|
||||||
{
|
{
|
||||||
// Get the stage parameter from the job data
|
// Get the stage parameter from the job data
|
||||||
var stageString = context.JobDetail.JobDataMap.GetString("stage");
|
var stageString = context.MergedJobDataMap.GetString("stage");
|
||||||
if (!Enum.TryParse<PresenceUpdateStage>(stageString, out var stage))
|
if (!Enum.TryParse<PresenceUpdateStage>(stageString, out var stage))
|
||||||
{
|
{
|
||||||
logger.LogError("Invalid or missing stage parameter: {Stage}", stageString);
|
logger.LogError("Invalid or missing stage parameter: {Stage}", stageString);
|
||||||
|
|||||||
Reference in New Issue
Block a user