Temporarily disabled hasPDF validation

This commit is contained in:
Joao Ramos
2024-01-08 18:59:51 +00:00
parent 12d608879d
commit 7328f5c57f

View File

@@ -183,13 +183,13 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
const stats = docsSnap.docs.map((d) => d.data()); const stats = docsSnap.docs.map((d) => d.data());
// verify if the stats already have a pdf generated // 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 (hasPDF) {
// if it does, return the pdf url // // if it does, return the pdf url
res.status(200).end(hasPDF.pdf); // res.status(200).end(hasPDF.pdf);
return; // return;
} // }
try { try {
// generate the pdf report // generate the pdf report