Skip to content

Commit

Permalink
Fix:Debian pkg crash due to using toSorted that is only available in …
Browse files Browse the repository at this point in the history
…Node20+ #3024
  • Loading branch information
advplyr committed May 27, 2024
1 parent bf893a5 commit 1337c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/prober.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1337c60

Please sign in to comment.