Don't fail when YouTube API fails

This commit is contained in:
Ajay Ramachandran
2020-09-07 10:23:51 -04:00
parent 9bcecae9a2
commit cb386b7f8d

View File

@@ -115,7 +115,7 @@ async function autoModerateSubmission(submission, callback) {
});
if (err) {
return "Couldn't get video information.";
return false;
} else {
// Check to see if video exists
if (data.pageInfo.totalResults === 0) {