Estou com problema nesse ponto do curso, até aqui tudo funcionando perfeitamente. Agora que codifiquei para o recebimento das datas ele está dando erro 500 no servidor
TypeError: argument callback must be a function when provided
at Function.createQuery (X:\PROJECT_api\node_modules\mysql\lib\Connection.js:57:13)
at Connection.query (X:\PROJECT_api\node_modules\mysql\lib\Connection.js:181:26)
at cadastrarPilotos.adiciona (X:\PROJECT_api\modelos\cadastrarPessoas.js:14:17)
at X:\PROJECT_api\rotas\cadastroPiloto.js:8:24
at Layer.handle [as handle_request] (X:\PROJECT_api\node_modules\express\lib\router\layer.js:95:5)
at next (X:\PROJECT_api\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (X:\PROJECT_api\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (X:\PROJECT_api\node_modules\express\lib\router\layer.js:95:5)
at X:\PROJECT_api\node_modules\express\lib\router\index.js:281:22
at Function.process_params (X:\PROJECT_api\node_modules\express\lib\router\index.js:335:12)
Alguém consegue me ajudar?