Ola estou usando o mysql e esta dando esse erro ao atualizar matriculas. No postam retorna que a matricula foi atualizada mas nao atualiza no db e no terminal da esse erro
Executing (default): SELECT id
, status
, createdAt
, updatedAt
, deletedAt
, curso_id
, estudante_id
FROM matriculas
AS Matricula
WHERE (Matricula
.deletedAt
IS NULL AND (Matricula
.status
= 'matriculado' AND Matricula
.estudante_id
= 3));
C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\dialects\abstract\query.js:264
const fmt = (${connection.uuid || "default"}): ${sql}${logParameter}
;
^
TypeError: Cannot read properties of undefined (reading 'uuid') at Query._logQuery (C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\dialects\abstract\query.js:264:32) at Query.run (C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\dialects\mysql\query.js:47:27) at C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\sequelize.js:315:28 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async MySQLQueryInterface.bulkUpdate (C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\dialects\abstract\query-interface.js:366:12) at async Matricula.update (C:\Users\go210\OneDrive\Área de Trabalho\web\ApiRest-node\4-ORM-Sequelize-2\arquivos\aula-5\node_modules\sequelize\lib\model.js:2010:28)
Node.js v20.16.0 [nodemon] app crashed - waiting for file changes before starting...