修改重复邮件问题
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-11-01 10:59:32 +08:00
parent 0111136c95
commit 4b4688538d
1 changed files with 5 additions and 1 deletions

View File

@ -64,8 +64,12 @@ namespace IRaCIS.Core.Infra.EFCore.Interceptor
//延迟调度的消息比如1h后再消费 //延迟调度的消息比如1h后再消费
await _scheduler.SchedulePublish(DateTime.Now.AddSeconds((int)domainEvent.DelaySeconds!), (object)domainEvent); await _scheduler.SchedulePublish(DateTime.Now.AddSeconds((int)domainEvent.DelaySeconds!), (object)domainEvent);
} }
else
{
await _publishEndpoint.Publish(domainEvent.GetType(), domainEvent); await _publishEndpoint.Publish(domainEvent.GetType(), domainEvent);
}
} }
} }