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:
co-authored by
Oliver Windall Juhl
parent
923ccece24
commit
dc156861d4
@@ -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_
|
||||||
|
|||||||
Reference in New Issue
Block a user