Fix excessive page while fetching channels.

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha 2025-01-13 14:11:12 +07:00
parent 8be65cc04f
commit 4eff318722
No known key found for this signature in database
GPG key ID: 2D7AA6389D44DCAB

View file

@ -107,7 +107,7 @@ module.exports = {
await doFetch(queues, (url, res) => {
if (!pages && res.data.total) {
pages = Math.ceil(res.data.total / pageLimit)
while (page <= pages) {
while (page < pages) {
queues.push(f(++page))
}
}