Skip to content

Commit

Permalink
Remove snapshots temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
barryosull committed May 29, 2017
1 parent 4fbef08 commit 0562200
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Sourced/Aggregate/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function save(Aggregate $aggregate)

private function should_snapshot(Aggregate $aggregate)
{
return false;
$new_version = $aggregate->state()->version();
$old_version = $new_version->subtract($aggregate->changes()->count());

Expand Down

0 comments on commit 0562200

Please sign in to comment.