feature/fitlien-add-cors (#10)

Changed variable name

Reviewed-on: #10
Co-authored-by: DhanshCOSQ <dhanshas@cosq.net>
Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
This commit is contained in:
Dhansh A S 2025-04-08 12:46:53 +00:00 committed by Dhansh A S
parent b68bda68c2
commit 912706aee7
2 changed files with 2 additions and 2 deletions

View File

@ -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}#

View File

@ -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' });