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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user