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);
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