fix(js-sdk): fix the return type of the promotion.listRules method (#11937)
This commit is contained in:
5
.changeset/bright-oranges-obey.md
Normal file
5
.changeset/bright-oranges-obey.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/js-sdk": patch
|
||||
---
|
||||
|
||||
fix(js-sdk): fix the return type of the `promotion.listRules` method
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user