Removed change setup for debug
This commit is contained in:
@@ -136,14 +136,14 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
const userId = stats[statIndex].user;
|
const userId = stats[statIndex].user;
|
||||||
|
|
||||||
|
|
||||||
// if (hasPDF) {
|
if (hasPDF) {
|
||||||
// // if it does, return the pdf url
|
// if it does, return the pdf url
|
||||||
// const fileRef = ref(storage, hasPDF.pdf.path);
|
const fileRef = ref(storage, hasPDF.pdf.path);
|
||||||
// const url = await getDownloadURL(fileRef);
|
const url = await getDownloadURL(fileRef);
|
||||||
|
|
||||||
// res.status(200).end(url);
|
res.status(200).end(url);
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// generate the pdf report
|
// generate the pdf report
|
||||||
|
|||||||
Reference in New Issue
Block a user