chore(): Remove default limit from the build query (#9257)

* chore(): Remove default limit from the build query

* rm take: null

* fix tests

* fix tests

* fix db usage

* fix typo

* rm unsused template arg

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes
This commit is contained in:
Adrien de Peretti
2024-09-24 16:06:45 +02:00
committed by GitHub
parent 9e711720dd
commit 90d530565b
41 changed files with 549 additions and 224 deletions
@@ -292,7 +292,7 @@ export default class PricingModuleService
// We use the price rules to get the right preferences for the price
const priceRulesForPrices = await this.priceRuleService_.list(
{ price_id: priceIds },
{ take: null }
{}
)
const priceRulesPriceMap = groupBy(priceRulesForPrices, "price_id")
@@ -947,7 +947,7 @@ export default class PricingModuleService
) {
const priceSets = await this.listPriceSets(
{ id: input.map((d) => d.priceSetId) },
{ take: null, relations: ["prices", "prices.price_rules"] },
{ relations: ["prices", "prices.price_rules"] },
sharedContext
)
@@ -1201,7 +1201,7 @@ export default class PricingModuleService
): Promise<Price[]> {
const priceLists = await this.listPriceLists(
{ id: data.map((p) => p.price_list_id) },
{ take: null, relations: ["prices", "prices.price_rules"] },
{ relations: ["prices", "prices.price_rules"] },
sharedContext
)
@@ -1257,7 +1257,7 @@ export default class PricingModuleService
): Promise<Price[]> {
const priceLists = await this.listPriceLists(
{ id: data.map((p) => p.price_list_id) },
{ take: null, relations: ["prices", "prices.price_rules"] },
{ relations: ["prices", "prices.price_rules"] },
sharedContext
)