mirror of
https://github.com/Sea-Haven-Industries/google-user-sync.git
synced 2026-05-18 20:20:17 +00:00
Fix missing brace from bad rebase and README fence
This commit is contained in:
parent
23235cfd76
commit
fda51b2524
2 changed files with 4 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ aws secretsmanager create-secret \
|
|||
```bash
|
||||
npm install
|
||||
npx cdk deploy google-user-sync
|
||||
```
|
||||
|
||||
## Verification
|
||||
|
||||
|
|
|
|||
|
|
@ -148,7 +148,9 @@ function extractUserFields(googleUser) {
|
|||
if (googleUser.phones && googleUser.phones.length > 0) {
|
||||
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);
|
||||
phone = (workPhone && workPhone.value) || primaryPhone.value || "";
|
||||
phone = (workPhone || primaryPhone || {}).value || "";
|
||||
}
|
||||
|
||||
return { email, jobTitle, phone };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue