fix(js-sdk): fix the return type of the promotion.listRules method (#11937)
This commit is contained in:
@@ -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
|
headers?: ClientHeaders
|
||||||
) {
|
) {
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
return await this.client.fetch<HttpTypes.AdminRuleAttributeOptionsListResponse>(
|
return await this.client.fetch<HttpTypes.AdminPromotionRuleListResponse>(
|
||||||
`/admin/promotions/${id}/${ruleType}`,
|
`/admin/promotions/${id}/${ruleType}`,
|
||||||
{
|
{
|
||||||
headers,
|
headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user