mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
update get-page and get-all-pages content hooks
This commit is contained in:
@@ -3,11 +3,10 @@ import { swellConfig } from '../../index'
|
||||
const fetchSwellApi = async (
|
||||
query: string,
|
||||
method: string,
|
||||
variables: object | string
|
||||
variables: [] = []
|
||||
) => {
|
||||
const { swell } = swellConfig
|
||||
const res = await swell[query][method](variables)
|
||||
|
||||
return res
|
||||
return await swell[query][method](...variables)
|
||||
}
|
||||
export default fetchSwellApi
|
||||
|
Reference in New Issue
Block a user