debug: exploratory logging for frontpage

This commit is contained in:
Vyacheslav Matyukhin 2022-04-23 00:40:24 +04:00
parent 38d666fec0
commit 66938bcaf4
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -7,7 +7,12 @@ builder.queryField("frontpage", (t) =>
type: [QuestionObj], type: [QuestionObj],
description: "Get a list of questions that are currently on the frontpage", description: "Get a list of questions that are currently on the frontpage",
resolve: async () => { resolve: async () => {
try {
return await getFrontpage(); return await getFrontpage();
} catch (e) {
console.error(e);
throw e;
}
}, },
}) })
); );