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:
committed by
GitHub
parent
923ccece24
commit
dc156861d4
5
.changeset/spicy-jokes-protect.md
Normal file
5
.changeset/spicy-jokes-protect.md
Normal 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 {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_
|
||||
|
||||
Reference in New Issue
Block a user