fix(medusa): ShippingOption type on listAndCount (#2040)

**What**
Fix typing issue

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2023-02-06 13:00:32 +00:00
committed by GitHub
co-authored by Oliver Windall Juhl
parent 923ccece24
commit dc156861d4
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): ShippingOption type on `listAndCount`
@@ -157,12 +157,12 @@ class ShippingOptionService extends TransactionBaseService {
} }
/** /**
* @param {Object} selector - the query object for find * @param selector - the query object for find
* @param {object} config - config object * @param config - config object
* @return {Promise} the result of the find operation * @return the result of the find operation
*/ */
async listAndCount( async listAndCount(
selector: Selector<ShippingMethod>, selector: Selector<ShippingOption>,
config: FindConfig<ShippingOption> = { skip: 0, take: 50 } config: FindConfig<ShippingOption> = { skip: 0, take: 50 }
): Promise<[ShippingOption[], number]> { ): Promise<[ShippingOption[], number]> {
const manager = this.manager_ const manager = this.manager_