Fix missing brace from bad rebase and README fence

This commit is contained in:
Adam Moussa 2026-05-11 14:11:39 -04:00
parent 23235cfd76
commit fda51b2524
2 changed files with 4 additions and 1 deletions

View file

@ -73,6 +73,7 @@ aws secretsmanager create-secret \
```bash ```bash
npm install npm install
npx cdk deploy google-user-sync npx cdk deploy google-user-sync
```
## Verification ## Verification

View file

@ -148,7 +148,9 @@ function extractUserFields(googleUser) {
if (googleUser.phones && googleUser.phones.length > 0) { if (googleUser.phones && googleUser.phones.length > 0) {
const workPhone = googleUser.phones.find((p) => p.type === "work" && p.value); const workPhone = googleUser.phones.find((p) => p.type === "work" && p.value);
const primaryPhone = googleUser.phones.find((p) => p.primary && p.value) || googleUser.phones.find((p) => p.value); const primaryPhone = googleUser.phones.find((p) => p.primary && p.value) || googleUser.phones.find((p) => p.value);
phone = (workPhone && workPhone.value) || primaryPhone.value || ""; phone = (workPhone || primaryPhone || {}).value || "";
}
return { email, jobTitle, phone }; return { email, jobTitle, phone };
} }