Skip to content

Commit d2eb905

Browse files
committed
Merge pull request #665 from LearningLocker/issue/663
Fixes #663.
2 parents 561968f + 1cf33f6 commit d2eb905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/locker/repository/Statement/EloquentRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ public function store(array $statements, array $attachments, array $opts) {
3939
public function index(array $opts) {
4040
$opts = new IndexOptions($opts);
4141
$builder = $this->indexer->index($opts);
42+
$count = $this->indexer->count($builder, $opts);
4243
return [
4344
$this->indexer->format($builder, $opts),
44-
$this->indexer->count($builder, $opts),
45+
$count,
4546
$opts->options
4647
];
4748
}

0 commit comments

Comments
 (0)