Removed change setup for debug

This commit is contained in:
Joao Ramos
2024-03-21 10:57:55 +00:00
parent 0a24cb9978
commit 8cc7e6a57d

View File

@@ -136,14 +136,14 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
const userId = stats[statIndex].user;
// if (hasPDF) {
// // if it does, return the pdf url
// const fileRef = ref(storage, hasPDF.pdf.path);
// const url = await getDownloadURL(fileRef);
if (hasPDF) {
// if it does, return the pdf url
const fileRef = ref(storage, hasPDF.pdf.path);
const url = await getDownloadURL(fileRef);
// res.status(200).end(url);
// return;
// }
res.status(200).end(url);
return;
}
try {
// generate the pdf report