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) { if (err) {
return "Couldn't get video information."; return false;
} else { } else {
// Check to see if video exists // Check to see if video exists
if (data.pageInfo.totalResults === 0) { if (data.pageInfo.totalResults === 0) {