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

View File

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