mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 02:39:05 +02:00
Fix:Debian pkg crash due to using toSorted that is only available in Node20+ #3024
This commit is contained in:
parent
bf893a56c9
commit
1337c60cde
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ function parseChapters(_chapters) {
|
||||||
title
|
title
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.toSorted((a, b) => a.start - b.start)
|
.sort((a, b) => a.start - b.start)
|
||||||
.map((chap, index) => {
|
.map((chap, index) => {
|
||||||
chap.id = index
|
chap.id = index
|
||||||
return chap
|
return chap
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue