修改重复邮件问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0111136c95
commit
4b4688538d
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue