Update invoiceService.ts

This commit is contained in:
AllenTJ7 2025-05-20 13:32:51 +05:30
parent 2d6b14663b
commit b11cefbab4

View File

@ -7,7 +7,7 @@ import { sendEmailWithAttachmentUtil } from "../../../utils/emailService";
import * as pdfMake from 'pdfmake/build/pdfmake'; import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts'; import * as pdfFonts from 'pdfmake/build/vfs_fonts';
(pdfMake as any).vfs = pdfFonts.vfs; (pdfMake as any).vfs = (pdfFonts as any).pdfMake ? (pdfFonts as any).pdfMake.vfs : pdfFonts.vfs;
const admin = getAdmin(); const admin = getAdmin();
const logger = getLogger(); const logger = getLogger();