feat: 设置发布事件立即执行

This commit is contained in:
橙子
2024-07-25 22:34:40 +08:00
parent 0a54ba9cae
commit e04edf4a4e
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ namespace Yi.Framework.Bbs.Domain.Managers
await _signInRepository.InsertAsync(entity);
//发布一个其他领域的事件
await _localEventBus.PublishAsync(new MoneyChangeEventArgs() { UserId = userId, Number = value });
await _localEventBus.PublishAsync(new MoneyChangeEventArgs() { UserId = userId, Number = value },false);
return value;
}