fix(js-sdk): fix the return type of the promotion.listRules method (#11937)

This commit is contained in:
Shahed Nasser
2025-03-24 08:35:15 +02:00
committed by GitHub
parent 1bcd822963
commit c6f2f444ed
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/js-sdk": patch
---
fix(js-sdk): fix the return type of the `promotion.listRules` method

View File

@@ -135,7 +135,7 @@ export class Promotion {
headers?: ClientHeaders
) {
// eslint-disable-next-line max-len
return await this.client.fetch<HttpTypes.AdminRuleAttributeOptionsListResponse>(
return await this.client.fetch<HttpTypes.AdminPromotionRuleListResponse>(
`/admin/promotions/${id}/${ruleType}`,
{
headers,