remove console.log
parent
ca853c64b7
commit
539ab54e85
|
|
@ -26,7 +26,6 @@ export async function handler(request, response, next) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const reportData = await getReportData(printConfig, request.query);
|
const reportData = await getReportData(printConfig, request.query);
|
||||||
console.log(reportData);
|
|
||||||
const reportPath = path.join('views', 'print', 'pdf', printName + '.ejs');
|
const reportPath = path.join('views', 'print', 'pdf', printName + '.ejs');
|
||||||
function pdfCallbackFunction(pdf) {
|
function pdfCallbackFunction(pdf) {
|
||||||
response.setHeader('Content-Disposition', `${attachmentOrInline}; filename=${camelcase(printConfig.title)}.pdf`);
|
response.setHeader('Content-Disposition', `${attachmentOrInline}; filename=${camelcase(printConfig.title)}.pdf`);
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,6 @@ export async function handler(
|
||||||
|
|
||||||
const reportData = await getReportData(printConfig, request.query)
|
const reportData = await getReportData(printConfig, request.query)
|
||||||
|
|
||||||
console.log(reportData)
|
|
||||||
|
|
||||||
const reportPath = path.join('views', 'print', 'pdf', printName + '.ejs')
|
const reportPath = path.join('views', 'print', 'pdf', printName + '.ejs')
|
||||||
|
|
||||||
function pdfCallbackFunction(pdf: Buffer): void {
|
function pdfCallbackFunction(pdf: Buffer): void {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue