Skip to content

Commit

Permalink
Merge pull request #248 from canthis/patch-1
Browse files Browse the repository at this point in the history
Revisionable trait's revisionableCleanUp bugfix
  • Loading branch information
daftspunk committed Dec 1, 2016
2 parents 684470c + 8d3feb3 commit 9257107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/Traits/Revisionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function revisionableCleanUp()
: 500;

$toDelete = $relationObject
->orderBy('id')
->orderBy('id', 'desc')
->skip($revisionLimit)
->limit(64)
->get();
Expand Down Expand Up @@ -185,4 +185,4 @@ public function getRevisionHistoryName()
return defined('static::REVISION_HISTORY') ? static::REVISION_HISTORY : 'revision_history';
}

}
}

0 comments on commit 9257107

Please sign in to comment.