unity
6/1/2018 - 6:29 PM

Update Account Attributes

//Updating an attribute on an Account when a User is updated

events.map(event => {
  if (event.event==="Submitted Credit Card") {
    //Set `card_submitted` to `true` on the Account that this user belongs to.
    hull.account().traits({
      card_submitted: true
    })    
  }
});