Skip to content

Commit

Permalink
Merge pull request LearningLocker#870 from LearningLocker/issue/lrs-s…
Browse files Browse the repository at this point in the history
…tatement-count

Force a hint on statement counts for an LRS
  • Loading branch information
ryasmi authored Oct 14, 2016
2 parents 716188b + 5878738 commit 73ceab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/locker/repository/Lrs/EloquentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function getStatementCount( $lrs_id = null ) {
$query['lrs_id'] = $lrs_id;
}

return $collection->count($query);
return $collection->count($query, ['hint'=>['lrs_id'=>1]]);
}

public function changeRole($id, $user_id, $role) {
Expand Down

0 comments on commit 73ceab8

Please sign in to comment.