Returning empty array instead of null from empty Vixen page.

This commit is contained in:
DebaucheryLibrarian 2020-11-26 03:14:32 +01:00
parent 54df9d0c78
commit 6633ce78d0
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ async function fetchLatest(site, page = 1) {
return scrapeAll(res.body.data.videos, site);
}
return null;
return [];
}
return res.status;
@ -227,7 +227,7 @@ async function fetchUpcoming(site) {
return scrapeUpcoming(res.body.data.nextScene, site);
}
return null;
return [];
}
return res.status;