Skip to content

Commit

Permalink
🐛 fix: Domain events not executed
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Jul 20, 2024
1 parent 88d6eda commit 7849eeb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task GetListAsync(GetListMessageRecordQuery query)
PageSize = options.PageSize,
Sorting = new Dictionary<string, bool>
{
[nameof(MessageRecordQueryModel.Id)] = true
[nameof(MessageRecordQueryModel.CreationTime)] = true
}
});
var dtos = resultList.Result.Adapt<List<MessageRecordDto>>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ protected override async Task ExecutingAsync(ExecuteMessageTaskJobArgs args)
}

await messageTaskHistoryRepository.UpdateAsync(history);
await unitOfWork.SaveChangesAsync();
await unitOfWork.CommitAsync();

var channel = await channelRepository.FindAsync(x => x.Id == history.MessageTask.ChannelId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task GetListAsync(GetMessageTaskListQuery query)
PageSize = options.PageSize,
Sorting = new Dictionary<string, bool>
{
[nameof(MessageTaskQueryModel.Id)] = true
[nameof(MessageTaskQueryModel.CreationTime)] = true
}
});
var dtos = resultList.Result.Adapt<List<MessageTaskDto>>();
Expand Down

0 comments on commit 7849eeb

Please sign in to comment.