changed import and collection name

This commit is contained in:
AllenTJ7 2025-05-21 15:37:57 +05:30
parent 5a17380f66
commit dd060fb963
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import * as path from 'path';
import { format } from 'date-fns';
import { sendEmailWithAttachmentUtil } from "../../../utils/emailService";
import { jsPDF } from "jspdf";
import 'jspdf-autotable';
import autoTable from 'jspdf-autotable';
const admin = getAdmin();
const logger = getLogger();
@ -83,7 +83,7 @@ export class InvoiceService {
doc.text(`Phone: ${data.phoneNumber}`, 20, 80);
doc.text(`Email: ${data.email}`, 20, 90);
(doc as any).autoTable({
autoTable(doc,{
startY: 110,
head: [['No.', 'Description', 'HSN/SAC', 'Amount (INR)']],
body: [

View File

@ -154,7 +154,7 @@ export const phonePeWebhook = onRequest({
logger.info(`Fetching user data for userId: ${userId}`);
const userDoc = await admin.firestore()
.collection('users')
.collection('client_profiles')
.doc(userId)
.get();
if (userDoc.exists) {