From 3e1a51c093f896355e198e6a240b37d15aa4bffd Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Wed, 11 Jun 2025 09:45:33 +0000 Subject: [PATCH 1/2] feature/essl-password (#58) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/58 Co-authored-by: DhanshCOSQ Co-committed-by: DhanshCOSQ --- .gitea/workflows/deploy-dev.yaml | 6 ++++++ .gitea/workflows/deploy-qa.yaml | 6 ++++++ .gitea/workflows/deploy.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.gitea/workflows/deploy-dev.yaml b/.gitea/workflows/deploy-dev.yaml index f0f0a82..cbb62b4 100644 --- a/.gitea/workflows/deploy-dev.yaml +++ b/.gitea/workflows/deploy-dev.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env diff --git a/.gitea/workflows/deploy-qa.yaml b/.gitea/workflows/deploy-qa.yaml index c868dcb..e57c4bc 100644 --- a/.gitea/workflows/deploy-qa.yaml +++ b/.gitea/workflows/deploy-qa.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index dbc0dd5..8ce1e58 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env From e27e189f7ec49304e6f0385d5f531421588845e2 Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Thu, 12 Jun 2025 08:25:49 +0000 Subject: [PATCH 2/2] phone number updated (#59) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/59 Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- functions/src/users/clientRegistration.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/functions/src/users/clientRegistration.ts b/functions/src/users/clientRegistration.ts index a168200..89f4eab 100644 --- a/functions/src/users/clientRegistration.ts +++ b/functions/src/users/clientRegistration.ts @@ -82,7 +82,6 @@ export const registerClient = onRequest({ const clientData = { ...gymUser, - phoneNumber: formattedPhoneNumber, }; await admin.firestore().collection('client_profiles').doc(clientUid).set(clientData);