Open ccarollo opened 8 months ago
@adrien2p, could you investigate this issue?
I ll have a look at this one
@ccarollo from what I can see, you have created and Address entity which does not have a relation to the customer, which is what is expected by medusa. Therefore, typeorm does not find the inverse relation between the customer and the address.
@adrien2p thank you for explaining. Two questions...
@shahednasser do we have this in our resources? the entities and there relations.
@ccarollo if you would like to add more properties to the already existing Address entity, we have a documentation on how to extend a core entity
We have a guide here on how to extend an entities: https://docs.medusajs.com/development/entities/extend-entity
We also have an entity reference where you can browse all entities and see their properties, including their relations: https://docs.medusajs.com/references/entities/classes/Address
In the reference, you'll find that relations have a blue icon next to them indicating that they can be expanded. You can hover over the icon for more details.
@ccarollo - can you maybe explain why you added the Address entity?
Bug report
After installing a base version of medusa, and then making a number of additions within the src/ directory the CustomerService begins to fail with the following error...
System information
Medusa version (including plugins): 1.18.1 Node.js version: v20.9.0 Database: PostgreSQL 16.0 Operating system: Mac OS 14.2.1 Browser (if relevant): Chrome 120.0.6099.216
Dependencies List
Steps to reproduce the behavior
curl -X GET http://localhost:9000/admin/paymentterms
. It shouldnt work. With the error unauthorized. However the export api route has been setup to not require authentication. If you now go into theExpected behavior
A clear and concise description of what you expected to happen
I should be able to access the /admin/customers/ without it returning an error and a 500. This error also appears to affect the /store/auth for the storefront.
Screenshots
Code snippets
src.2.0.zip