Compare commits

...

2 Commits

Author SHA1 Message Date
e517367967 Renamed modules
All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 3m58s
2025-06-01 09:38:57 +05:30
ee27b1b3cc Adding missing type inferences 2025-06-01 09:36:02 +05:30
4 changed files with 17 additions and 13 deletions

View File

@ -2,6 +2,7 @@ import { getLogger } from "../shared/config";
import { getCorsHandler } from "../shared/middleware";
import { onRequest } from "firebase-functions/v2/https";
import { Request } from "firebase-functions/v2/https";
import { Response } from "express";
import { SESClient } from "@aws-sdk/client-ses";
import { SendEmailCommand, SendRawEmailCommand } from "@aws-sdk/client-ses";
import { HttpsError } from "firebase-functions/v2/https";
@ -136,7 +137,7 @@ async function downloadFileFromUrl(url: string): Promise<Buffer> {
export const sendEmailSES = onRequest({
region: 'asia-south1'
}, (request: Request, response) => {
}, (request: Request, response: Response) => {
return corsHandler(request, response, async () => {
try {
const toAddress = request.body.toAddress;

View File

@ -16,4 +16,4 @@ export { accessFile } from './storage';
export { processNotificationOnCreate } from './notifications';
export * from './payments';
export { getPlaceDetails, getPlacesAutocomplete } from './places';
export { registerClient } from './clientRegistration';
export { registerClient } from './users';

View File

@ -1,6 +1,9 @@
import { onRequest } from "firebase-functions/v2/https";
import { getCorsHandler } from "../shared/middleware";
import { getAdmin, getLogger } from "../shared/config";
import { Request } from "firebase-functions/v2/https";
import { Response } from "express";
const corsHandler = getCorsHandler();
const admin = getAdmin();
@ -8,7 +11,7 @@ const logger = getLogger();
export const registerClient = onRequest({
region: '#{SERVICES_RGN}#'
}, async (req, res) => {
}, async (req: Request, res: Response) => {
return corsHandler(req, res, async () => {
try {
if (req.method !== 'POST') {