feat: Implement missing methods in product module and make more tests pass (#6650)

The 2 bigger remaining tasks are:
1. handling prices for variants
2. Handling options (breaking change)

After that all tests should pass on both v1 and v2
This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-03-11 11:03:24 +00:00
1 parent e124762873
commit ff4bd62f71
29 files changed
+1194 -321

No files matched your search

@@ -48,11 +48,11 @@ export const simpleProductFactory = async (
const manager = dataSource.manager
const defaultProfile = await manager.findOne(ShippingProfile, {
const defaultProfile = (await manager.findOne(ShippingProfile, {
where: {
type: ShippingProfileType.DEFAULT,
},
})
})) || { id: "default-profile-id" }
const gcProfile = await manager.findOne(ShippingProfile, {
where: {