invitation.accepted was not being saved

This marks invitations as accepted so they cannot be reused.