mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 09:51:37 +00:00
fix: restore updated browse keyset coverage
This commit is contained in:
parent
8585cfff6b
commit
59c7c0a7c2
2 changed files with 6 additions and 2 deletions
|
|
@ -19,6 +19,10 @@ function getKeysetCursorKeys(sortBy) {
|
|||
return ['createdAt', 'id']
|
||||
}
|
||||
|
||||
if (sortBy === 'updatedAt') {
|
||||
return ['updatedAt', 'id']
|
||||
}
|
||||
|
||||
if (sortBy === 'progress') {
|
||||
return ['mediaProgresses.updatedAt', 'id']
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ describe('libraryBrowseStrategy', () => {
|
|||
})
|
||||
|
||||
expect(strategy.family).to.equal('plain-browse')
|
||||
expect(strategy.paginationMode).to.equal('offset')
|
||||
expect(strategy.cursorKeys).to.deep.equal([])
|
||||
expect(strategy.paginationMode).to.equal('keyset')
|
||||
expect(strategy.cursorKeys).to.deep.equal(['updatedAt', 'id'])
|
||||
})
|
||||
|
||||
it('uses keyset pagination for deterministic author browse', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue