How can I, in this code, take the data that has been changed in MYSQL and return it in another function? For example, take the id_ticket column and use it in another function. Answer onEvent is a handler, you just need to pass a function to that handler and