Получаю ошибку:
TypeError: Cannot read properties of undefined (reading 'message')
at User.save (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/domain-model/Base.mjs:38:37)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Function.create (D:\nodejs_server\webbylab-starter-app-for-nodejs\node_modules\@sequelize\core\lib\model.js:1328:12)
at async UsersCreate.execute (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/use-cases/main/users/Create.mjs:24:26)
at async wrappedCallback (D:\nodejs_server\webbylab-starter-app-for-nodejs\node_modules\@sequelize\core\lib\sequelize-typescript.js:160:18)
at async runUseCase (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/api/rest-api/utils/chistaUtils.mjs:17:24)
at async renderPromiseAsJson (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/api/rest-api/utils/chistaUtils.mjs:51:22)
База данных PostgresSQl postgres (PostgreSQL) 14.5
Если ли мысли как обрабатывать , выводить field и message для PostgreSQL???
Привнесении пользователя с одинаковым email
Получаю ошибку: TypeError: Cannot read properties of undefined (reading 'message') at User.save (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/domain-model/Base.mjs:38:37) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Function.create (D:\nodejs_server\webbylab-starter-app-for-nodejs\node_modules\@sequelize\core\lib\model.js:1328:12) at async UsersCreate.execute (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/use-cases/main/users/Create.mjs:24:26) at async wrappedCallback (D:\nodejs_server\webbylab-starter-app-for-nodejs\node_modules\@sequelize\core\lib\sequelize-typescript.js:160:18) at async runUseCase (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/api/rest-api/utils/chistaUtils.mjs:17:24) at async renderPromiseAsJson (file:///D:/nodejs_server/webbylab-starter-app-for-nodejs/lib/api/rest-api/utils/chistaUtils.mjs:51:22)
База данных PostgresSQl postgres (PostgreSQL) 14.5 Если ли мысли как обрабатывать , выводить field и message для PostgreSQL???