mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01:00
Fix:Debian pkg crash due to using toSorted that is only available in Node20+ #3024
This commit is contained in:
@@ -153,7 +153,7 @@ function parseChapters(_chapters) {
|
||||
title
|
||||
}
|
||||
})
|
||||
.toSorted((a, b) => a.start - b.start)
|
||||
.sort((a, b) => a.start - b.start)
|
||||
.map((chap, index) => {
|
||||
chap.id = index
|
||||
return chap
|
||||
|
||||
Reference in New Issue
Block a user