Income and Expense with Sequelize + PostgreSQL-err

Beranda › Forums › Belajar Menjadi Full Stack Web Developer Tingkat Mahir › Income and Expense with Sequelize + PostgreSQL-err

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #202948
    Autofat
    Participant

      Hi coach, saya memiliki kendala nihh mohon diberi pencerahanya 😁
      data sudah masuk ke database tetapi value yang masuk adalah null

      input:

      {
          "name": "Salary",
          "total": 10000
      }

      output:

      {
         "id": 1,
         "name": null,
         "total": null,
         "createdAt": "2023-07-17T12:21:51.272Z",
          "updatedAt": "2023-07-17T12:21:51.272Z"
      }

      untuk db yang di create sudah sesuai, untuk name merupakan string dan total merupakan integer. letak terjadi miss nya dimana ya coach ?

      #203024
      Coach Vincent
      Moderator

        bisa jd di psotman nya kurang sesuai dgn nama attribute nya.

        Contoh:

        “name” : “Tests”

        ini yg salah

        “name “: “Tests”

        jd ada spasinya

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping