//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
})
}
});