fix(pricing): price list prices perf issues (#13899)
* update package * fix(pricing): update price list prices perf issues * Create lemon-clocks-sing.md * fix(pricing): update price list prices perf issues * fix(pricing): update price list prices perf issues * update package * update package * improvements * remove unnecessary comments --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
parent
01ee437926
commit
0f79f22ebc
+12
-12
@@ -795,20 +795,20 @@ moduleIntegrationTestRunner<IPricingModuleService>({
|
||||
it("should update a price to a priceList successfully", async () => {
|
||||
const [priceSet] = await service.createPriceSets([{}])
|
||||
|
||||
const prices = Array.from({ length: 1 }, (_, i) => ({
|
||||
id: `test-price-id-${i}`,
|
||||
amount: 123 + i,
|
||||
currency_code: "EUR",
|
||||
price_set_id: priceSet.id,
|
||||
rules: {
|
||||
region_id: `test`,
|
||||
},
|
||||
}))
|
||||
|
||||
const [priceBeforeUpdate] = await service.addPriceListPrices([
|
||||
{
|
||||
price_list_id: "price-list-1",
|
||||
prices: [
|
||||
{
|
||||
id: "test-price-id",
|
||||
amount: 123,
|
||||
currency_code: "EUR",
|
||||
price_set_id: priceSet.id,
|
||||
rules: {
|
||||
region_id: "test",
|
||||
},
|
||||
},
|
||||
],
|
||||
prices,
|
||||
},
|
||||
])
|
||||
|
||||
@@ -819,7 +819,7 @@ moduleIntegrationTestRunner<IPricingModuleService>({
|
||||
price_list_id: "price-list-1",
|
||||
prices: [
|
||||
{
|
||||
id: "test-price-id",
|
||||
id: "test-price-id-0",
|
||||
price_set_id: priceSet.id,
|
||||
rules: {
|
||||
region_id: "new test",
|
||||
|
||||
Reference in New Issue
Block a user