From c96627e2cf8a3ccfe95f2226a159db3122be3995 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Fri, 3 Jun 2022 11:13:57 +0300 Subject: [PATCH] feat: skip metaculus questions earlier --- src/backend/platforms/metaculus/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/platforms/metaculus/index.ts b/src/backend/platforms/metaculus/index.ts index 3cefa2b..40ce8f7 100644 --- a/src/backend/platforms/metaculus/index.ts +++ b/src/backend/platforms/metaculus/index.ts @@ -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 [ {