Added the update function to the Ticket repository.