This commit is contained in:
Dragon Fire
2020-11-08 18:05:44 -05:00
parent 1205b901f9
commit df506d624b
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = class WikiaCommand extends Command {
format: 'json', format: 'json',
formatversion: 2 formatversion: 2
}); });
if (!body || body.query.pages[0].missing) return null; if (!body.query || body.query.pages[0].missing) return null;
return body.query.pages[0].pageid; return body.query.pages[0].pageid;
} }