feat(medusa): add or remove categories from products (#3114)
* wip * chore: fix issues with join table * chore: fix issues * chore: fix ordering issue on random failing test * chore: revert table name * chore: added oas for category * chore: update categories for a product * chore: add remove category test * chore: added changeset * chore: address review comments * Apply suggestions from code review Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com> Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
This commit is contained in:
co-authored by
Philip Korsholm
parent
44dbe55f50
commit
ee42b60a20
@@ -6,7 +6,7 @@ export const simpleProductCategoryFactory = async (
|
||||
data: Partial<ProductCategory> = {}
|
||||
): Promise<ProductCategory> => {
|
||||
const manager = connection.manager
|
||||
const address = manager.create(ProductCategory, data)
|
||||
const category = manager.create(ProductCategory, data)
|
||||
|
||||
return await manager.save(address)
|
||||
return await manager.save(category)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user