rocketseat-education / bootcamp-gostack-desafios

Repositório contendo todos os desafios dos módulos do Bootcamp Gostack
https://pages.rocketseat.com.br/gostack
MIT License
1.18k stars 999 forks source link

Desafio 07: GoFinances Web - Erro na descrição #23

Open thadeucity opened 4 years ago

thadeucity commented 4 years ago

Na sessão Preparando o backend o exemplo de retorno do backend possui um erro.

"value" está definido como String, mas o backend deve retornar um Number, segundo o desafio 06 e segundo a própria Interface do desafio 07.

{
  "id": "c0512e43-6589-4dc8-bd0c-2a3f71b347aa",
  "title": "Loan",
  "type": "income",

///////////////////// O ERRO ESTÁ AQUI //////////////////////////
  "value": "1500.00", 
////////////////////////////////////////////////////////////////

  "category_id": "d93eccc7-64bb-4268-b825-9200103f3a8b",
  "created_at": "2020-04-20T00:00:49.620Z",
  "updated_at": "2020-04-20T00:00:49.620Z",
  "category": {
    "id": "d93eccc7-64bb-4268-b825-9200103f3a8b",
    "title": "Others",
    "created_at": "2020-04-20T00:00:49.594Z",
    "updated_at": "2020-04-20T00:00:49.594Z"
  }
}
LucasMallmann commented 4 years ago

@thadeucity valeu por avisar! Ajustei no PR https://github.com/Rocketseat/bootcamp-gostack-desafios/pull/27