Skip to content

Commit

Permalink
Fixed error with getAggregateHistoryFor() method.
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Parker <joshua@joshuaparker.dev>
  • Loading branch information
nomadicjosh committed Dec 6, 2024
1 parent 6cf4791 commit c1a4ef2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ public function getAggregateHistoryFor(AggregateId $aggregateId): EventStream
{
$query = $this->dfdb->qb()->table(tableName: $this->dfdb->basePrefix . 'event_store')
->select(columns: '*')
->where(condition: 'aggregate_id', parameters: (string) $aggregateId)
->and__()
->where('site', $this->dfdb->prefix);
->where(condition: 'aggregate_id', parameters: (string) $aggregateId);

return $this->eventStream($query, $aggregateId);
}
Expand Down

0 comments on commit c1a4ef2

Please sign in to comment.