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:
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: {
|
||||
|
||||
Reference in new issue
Block a user