Code Monkey home page Code Monkey logo

crypto-exchange's People

Contributors

meta-dapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

crypto-exchange's Issues

error en el wallet.service.ts no esta leyendo bien los datos de el endpoint all

[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.