feat(medusa): Improve add line item to cart perf and transaction management + clustering start command (#5701)

This commit is contained in:
Adrien de Peretti
2023-12-06 08:53:35 +01:00
committed by GitHub
parent a458cd144d
commit 6975eacb33
14 changed files with 341 additions and 147 deletions

View File

@@ -145,27 +145,23 @@ module.exports = async (dataSource, data = {}) => {
name: "Test Region",
currency_code: "usd",
tax_rate: 0,
payment_providers: [
{
id: "test-pay",
is_installed: true,
},
],
})
await manager.query(
`insert into region_payment_providers values ('test-region', 'test-pay');`
)
await manager.insert(Region, {
id: "test-region-2",
name: "Test Region 2",
currency_code: "eur",
tax_rate: 0,
payment_providers: [
{
id: "test-pay",
is_installed: true,
},
],
})
await manager.query(
`insert into region_payment_providers values ('test-region-2', 'test-pay');`
)
await manager.insert(DiscountRule, {
id: "discount_rule_id",
description: "test description",