Skip to content

Commit

Permalink
This is a hail mary
Browse files Browse the repository at this point in the history
  • Loading branch information
teenageknight committed Sep 22, 2024
1 parent 875b4c9 commit df80a18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Deploy-Firebase-Function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ jobs:
run: cd functions/ && npx firebase-tools use prod && npx firebase-tools deploy --only functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
3 changes: 3 additions & 0 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ function parseAddress(address_query_geocode: string, geocodio_address: any) {
return address;
}

/*
This secret is defined using the firebase secrets manager, not the github secrets manager.
*/
export const validateAddresses = onCall({ timeoutSeconds: 120, secrets: ["GEOCODIO_API_KEY"] }, async request => {
console.log("request.body", request.data.addresses);
console.log("request.body", request.data.addresses.length);
Expand Down

0 comments on commit df80a18

Please sign in to comment.