Skip to content

Commit

Permalink
bugfix: dynamodb query error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueskang committed Feb 17, 2020
1 parent 2b87dc7 commit cbb6662
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public async Task<IAggregateEvent<TKey>[]> GetEventsAsync(
int maxVersion,
CancellationToken cancellationToken = default)
{
var filter = new QueryFilter("aggregateVersion", QueryOperator.GreaterThanOrEqual, minVersion);
filter.AddCondition("aggregateVersion", QueryOperator.LessThanOrEqual, maxVersion);
var filter = new QueryFilter("aggregateVersion", QueryOperator.Between, minVersion, maxVersion);
Search search = this._table.Query(aggregateId as dynamic, filter);

var events = new List<IAggregateEvent<TKey>>();
Expand Down

0 comments on commit cbb6662

Please sign in to comment.