Skip to content

Commit

Permalink
Fix SearchEngineType mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed Oct 1, 2023
1 parent ba4892a commit bd33ca6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ImoutoRebirth.Arachne.MessageContracts.Commands;
using ImoutoRebirth.Arachne.MessageContracts;
using ImoutoRebirth.Arachne.MessageContracts.Commands;
using ImoutoRebirth.Common.Application;
using ImoutoRebirth.Common.Cqrs.Events;
using ImoutoRebirth.Meido.Domain.SourceActualizingStateAggregate;
Expand Down Expand Up @@ -30,13 +31,13 @@ protected override async Task Handle(ActualizationRequestedDomainEvent domainEve

await _distributedCommandBus.SendAsync<ILoadTagHistoryCommand>(new
{
SearchEngineType = searchEngineType,
SearchEngineType = (SearchEngineType)(int)searchEngineType,
LastProcessedTagHistoryId = domainEvent.Entity.LastProcessedTagHistoryId
}, ct);

await _distributedCommandBus.SendAsync<ILoadNoteHistoryCommand>(new
{
SearchEngineType = searchEngineType,
SearchEngineType = (SearchEngineType)(int)searchEngineType,
LastProcessedNoteUpdateAt = domainEvent.Entity.LastProcessedNoteUpdateAt.ToDateTimeOffset()
}, ct);
}
Expand Down

0 comments on commit bd33ca6

Please sign in to comment.