feat: skip metaculus questions earlier

This commit is contained in:
Vyacheslav Matyukhin 2022-06-03 11:13:57 +03:00
parent cc2257b626
commit c96627e2cf
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -85,7 +85,6 @@ async function apiQuestionToFetchedQuestions(
};
});
} else if (apiQuestion.type === "forecast") {
const apiQuestionDetails = await fetchSingleApiQuestion(apiQuestion.id);
if (apiQuestion.group) {
return []; // sub-question, should be handled on the group level
}
@ -93,6 +92,7 @@ async function apiQuestionToFetchedQuestions(
return [];
}
const apiQuestionDetails = await fetchSingleApiQuestion(apiQuestion.id);
const tmp = buildFetchedQuestion(apiQuestion);
return [
{