fetch broadcasted timeline entries from DB primary

pull/3417/merge
Thibault Duplessis 2017-08-07 21:21:23 -05:00
parent fca96e8459
commit ef30a4f304
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ final class EntryApi(
"date" $gt DateTime.now.minusMonths(6)
))
.sort($sort desc "date")
.cursor[Entry](ReadPreference.secondaryPreferred)
.cursor[Entry]() // must be on primary for cache refresh to work
.gather[Vector](8)
private[EntryApi] def interleave(entries: Vector[Entry]): Fu[Vector[Entry]] = cache.get map { bcs =>