🐛 Try fixing compilation error on vercel

This commit is contained in:
ajnart
2023-05-16 13:15:17 +09:00
parent 3bda652f4b
commit 03f07dbd81

View File

@@ -110,7 +110,8 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
})
);
const countFailed = medias.filter((x) => !x.success).length;
const results = await Promise.all(medias);
const countFailed = results.filter((x) => !x.success).length;
if (countFailed > 0) {
Consola.warn(`A total of ${countFailed} apps for the calendar widget failed`);
}