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:
Adrien de Peretti
2025-10-29 19:50:33 +01:00
committed by GitHub
co-authored by Oli Juhl
parent 01ee437926
commit 0f79f22ebc
3 changed files with 236 additions and 113 deletions
@@ -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",