Returning empty array instead of null from empty Vixen page.
This commit is contained in:
parent
54df9d0c78
commit
6633ce78d0
|
@ -212,7 +212,7 @@ async function fetchLatest(site, page = 1) {
|
||||||
return scrapeAll(res.body.data.videos, site);
|
return scrapeAll(res.body.data.videos, site);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status;
|
return res.status;
|
||||||
|
@ -227,7 +227,7 @@ async function fetchUpcoming(site) {
|
||||||
return scrapeUpcoming(res.body.data.nextScene, site);
|
return scrapeUpcoming(res.body.data.nextScene, site);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status;
|
return res.status;
|
||||||
|
|
Loading…
Reference in New Issue