Amo-Addai / real-estate-blockchain-dapp

A real-estate property enlistment decentralized application integrated with the Ethereum Blockchain, using Ethereum Smart Contracts written in Solidity. The DApp consists of 4 main components; the Node.js Express backend server connected to a PostgreSQL Database (with a PostGIS Extension), with the Node.js Express Server
20 stars 3 forks source link

error: Model not defined #4

Open thexahmed00 opened 2 years ago

thexahmed00 commented 2 years ago
error:  message=Models is not defined, stack=ReferenceError: Models is not defined
    at Object.find (D:\Major Project\real-estate-blockchain-master\real-estate-blockchain-master\api\services\PropertyEnlistmentService.js:16:5)
    at find (D:\Major Project\real-estate-blockchain-master\real-estate-blockchain-master\api\controllers\PropertyEnlistmentController.js:45:57)
    at D:\Major Project\real-estate-blockchain-master\real-estate-blockchain-master\server\utils.js:28:21
    at Layer.handle [as handle_request] (D:\Major Project\real-estate-blockchain-master\real-estate-blockchain-master\node_modules\express\lib\router\layer.js:95:5)
    at next (D:\Major Project\real-estate-blockchain-master\real-estate-blockchain-master\node_modules\express\lib\router\route.js:144:13) 
BryanRonad commented 1 year ago

I solved this issue by updating the pg module as specified in the PostgreSQL Support Table in the Sequelize documentation.