Skip to content

Instantly share code, notes, and snippets.

@david-mart
Created October 28, 2020 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-mart/1519582082c87aaa9c0a13d1a7e4eb0b to your computer and use it in GitHub Desktop.
Save david-mart/1519582082c87aaa9c0a13d1a7e4eb0b to your computer and use it in GitHub Desktop.
await consumer.update({
phone_id: consumer.phones?.[0]?.id,
email_id: consumer.emails?.[0]?.id,
full_name_id: consumer.names?.[0]?.id,
g_address_id: consumer.addresses?.[0]?.id,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment