Already setup correct relations but still got FuelTransactionReceiveLandLine is not associated to FuelTransaction! message #16752
Unanswered
andrewyohanes123
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i am currently want to make a relation between model named FuelTransaction to FuelTransactionReceiveLandLine. The parent model is FuelTransaction. I already setup the correct constraint to the db table in postgres as shown below
.
Here are my codes:
FuelTransaction.ts:
FuelTransactionReceiveLandLine.ts
here is the problem. When i did this and do GET request, i got an error
FuelTransactionReceiveLandLine is not associated to FuelTransaction!
NodeJS version
18.17.1
PostgreSQL version
12.17
Sequelize version
6.33.0
pg version
8.11.3
ph-hstore version
2.3.4
TypeScript version
5.2.2
What could possibly go wrong with my setup?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions