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 14:00:32 +01:00
committed by GitHub
parent 923ccece24
commit dc156861d4
2 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): ShippingOption type on `listAndCount`

View File

@@ -157,12 +157,12 @@ class ShippingOptionService extends TransactionBaseService {
}
/**
* @param {Object} selector - the query object for find
* @param {object} config - config object
* @return {Promise} the result of the find operation
* @param selector - the query object for find
* @param config - config object
* @return the result of the find operation
*/
async listAndCount(
selector: Selector<ShippingMethod>,
selector: Selector<ShippingOption>,
config: FindConfig<ShippingOption> = { skip: 0, take: 50 }
): Promise<[ShippingOption[], number]> {
const manager = this.manager_