Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
sequelize findAll empty but there is info

I am working with two calls, one is creating a row in the table correctly. When I then use the findAll call though (no filters or settings so should be all data in the table) it is returning an empty array but no error.

I have tried creating a new table and new model etc to try and rule them out but I get the same result. I have also tried using root credentials to rule out restrictions on the table. I have tried changing Payments to other tables like Users and it works as expected.

this is the call:

    let all_payments = [];
    [err, all_payments] = await to(Payments.findAll());
    if (err) return ReE(res, err);
    return ReS(res, "TEST", all_payments);
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

it seems that the table needed to be capital Payments instead of payments, unlike the other tables. Not sure why but will leave it that way until I do

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda