From 1337c60cdee4fed99909cfde17b2addaed3028f7 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 27 May 2024 13:22:20 -0500 Subject: [PATCH] Fix:Debian pkg crash due to using toSorted that is only available in Node20+ #3024 --- server/utils/prober.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/prober.js b/server/utils/prober.js index fc58937b..9b4d34e9 100644 --- a/server/utils/prober.js +++ b/server/utils/prober.js @@ -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