From 7328f5c57fae7e6389fd60fea747841c2cfa41a9 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Mon, 8 Jan 2024 18:59:51 +0000 Subject: [PATCH] Temporarily disabled hasPDF validation --- src/pages/api/stats/[id]/export.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/api/stats/[id]/export.tsx b/src/pages/api/stats/[id]/export.tsx index c6082ba8..f50045c0 100644 --- a/src/pages/api/stats/[id]/export.tsx +++ b/src/pages/api/stats/[id]/export.tsx @@ -183,13 +183,13 @@ async function post(req: NextApiRequest, res: NextApiResponse) { const stats = docsSnap.docs.map((d) => d.data()); // verify if the stats already have a pdf generated - const hasPDF = stats.find((s) => s.pdf); + // const hasPDF = stats.find((s) => s.pdf); - if (hasPDF) { - // if it does, return the pdf url - res.status(200).end(hasPDF.pdf); - return; - } + // if (hasPDF) { + // // if it does, return the pdf url + // res.status(200).end(hasPDF.pdf); + // return; + // } try { // generate the pdf report