From 912706aee7a4848efe65085e1946054ab083f10b Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Tue, 8 Apr 2025 12:46:53 +0000 Subject: [PATCH] feature/fitlien-add-cors (#10) Changed variable name Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/10 Co-authored-by: DhanshCOSQ Co-committed-by: DhanshCOSQ --- functions/.env.example | 2 +- functions/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/.env.example b/functions/.env.example index 7f1bf60..8f998fb 100644 --- a/functions/.env.example +++ b/functions/.env.example @@ -7,5 +7,5 @@ TWILIO_PHONE_NUMBER=#{TWILIO_PHONE_NUMBER}# SERVICES_RGN=#{SERVICES_RGN}# CASHFREE_CLIENT_ID=#{CASHFREE_CLIENT_ID}# CASHFREE_CLIENT_SECRET=#{CASHFREE_CLIENT_SECRET}# -GOOGLE_PLACES_API_KEY=#{GOOGLE_PLACES_API_KEY}# +GOOGLE_MAPS_API_KEY=#{GOOGLE_MAPS_API_KEY}# diff --git a/functions/src/index.ts b/functions/src/index.ts index b369f00..c1daa19 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -425,7 +425,7 @@ export const getPlacesAutocomplete = onRequest({ return; } - const apiKey = process.env.GOOGLE_PLACES_API_KEY; + const apiKey = process.env.GOOGLE_MAPS_API_KEY; if (!apiKey) { logger.error('Google Places API key is not configured'); response.status(500).json({ error: 'Server configuration error' });