phonepe #42

Merged
allentj merged 13 commits from phonepe into dev 2025-05-21 10:10:14 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit dd060fb963 - Show all commits

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) {