Compare commits

..

No commits in common. "0eb5ca1baf5212bc7c1047505a6d803c638eb405" and "f00ff4d1d63debf30f628067d5c2627b19b2cf92" have entirely different histories.

View File

@ -116,7 +116,7 @@ export const accessFile = onRequest({
});
export const sendEmailMessage = onRequest({
region: '#{SERVICES_RGN}#'
region: process.env.SERVICES_RGN
}, (request: Request, response: express.Response) => {
const mailgun = new Mailgun(formData);
const mailGunClient = mailgun.client({ username: 'api', key: process.env.MAILGUN_API_KEY });
@ -145,7 +145,7 @@ export const sendEmailMessage = onRequest({
});
export const sendSMSMessage = onRequest({
region: '#{SERVICES_RGN}#'
region: process.env.SERVICES_RGN
}, (request: Request, response: express.Response) => {
const client = twilio(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);
const { to, body } = request.body;
@ -174,7 +174,7 @@ interface Invitation {
export const notifyInvitation = onDocumentCreated({
document: 'notifications/{notificationId}',
region: '#{SERVICES_RGN}#'
region: process.env.SERVICES_RGN
}, async (event: any) => {
const invitation = event.data?.data() as Invitation;
const invitationId = event.params.invitationId;
@ -243,7 +243,7 @@ export const notifyInvitation = onDocumentCreated({
});
export const createCashfreeOrder = onRequest({
region: '#{SERVICES_RGN}#'
region: process.env.SERVICES_RGN
}, async (request: Request, response: express.Response) => {
try {
const authHeader = request.headers.authorization;
@ -334,7 +334,7 @@ export const createCashfreeOrder = onRequest({
});
export const verifyCashfreePayment = onRequest({
region: '#{SERVICES_RGN}#'
region: process.env.SERVICES_RGN
}, async (request: Request, response: express.Response) => {
try {
const orderId = request.body.order_id || request.query.order_id;