meta-dapp / crypto-exchange Goto Github PK
View Code? Open in Web Editor NEWA crypto exchange with nodejs, nestjs, redis, bullmq, mongodb and reactjs
Home Page: https://www.youtube.com/@MetaDapp
A crypto exchange with nodejs, nestjs, redis, bullmq, mongodb and reactjs
Home Page: https://www.youtube.com/@MetaDapp
If you are having an error on "const RedisStore = createRedisStore(session)", make sure to install the same version of connect-redis as Iván using the following command:
npm install [email protected] @types/connect-redis
[Nest] 33420 - 31/05/2024, 17:56:18 LOG [NestApplication] Nest application successfully started +7ms
It is highly recommended to use a minimum Redis version of 6.2.0
Current: 5.0.14.1
[Nest] 33420 - 31/05/2024, 17:56:21 ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'balance')
TypeError: Cannot read properties of undefined (reading 'balance')
POSTMAN
{
"statusCode": 500,
"message": "Internal server error"
}
ERROR VIENE DE LA FORMA EN QUE SE ACCEDE A LOS DATOS EN getwallets da a undefine
async getWallets(email: string) {
const data = await this.userModel.aggregate([
{ $match: { email } },
{ $unwind: '$wallets' },
{ $project: { _id: 0, wallets: 1 } },
{
$lookup: {
from: "wallets",
localField: "wallets",
foreignField: "_id",
"pipeline": [
{ "$project": { transactions: 0 } }
],
as: "walletsData"
}
}
]).exec();
if (data && data.length > 0) {
return data.map(wallet => {
return {
balance: wallet.walletsData[0].balance,
address: wallet.walletsData[0].address,
coin: wallet.walletsData[0].coin,
chainId: wallet.walletsData[0].chainId,
walletId: wallet.walletsData[0]._id
}
})
}
}
aun en busca de una solucion
List your Decentralized dApps for sale on https://pinky.finance/marketplace to earn crypto instantly on each sale. Love your products, maybe you have something for sale...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.