feat: deprecate remoteQueryConfig in favor of queryConfig (#10773)
Fixes: FRMW-2783
This commit is contained in:
@@ -24,7 +24,7 @@ export const POST = async (
|
||||
const apiKey = await refetchApiKey(
|
||||
req.params.id,
|
||||
req.scope,
|
||||
req.remoteQueryConfig.fields
|
||||
req.queryConfig.fields
|
||||
)
|
||||
|
||||
res.status(200).json({ api_key: apiKey })
|
||||
|
||||
@@ -19,7 +19,7 @@ export const GET = async (
|
||||
const apiKey = await refetchApiKey(
|
||||
req.params.id,
|
||||
req.scope,
|
||||
req.remoteQueryConfig.fields
|
||||
req.queryConfig.fields
|
||||
)
|
||||
|
||||
if (!apiKey) {
|
||||
@@ -46,7 +46,7 @@ export const POST = async (
|
||||
const apiKey = await refetchApiKey(
|
||||
req.params.id,
|
||||
req.scope,
|
||||
req.remoteQueryConfig.fields
|
||||
req.queryConfig.fields
|
||||
)
|
||||
|
||||
res.status(200).json({ api_key: apiKey })
|
||||
|
||||
@@ -32,7 +32,7 @@ export const POST = async (
|
||||
const updatedApiKey = await refetchApiKey(
|
||||
req.params.id,
|
||||
req.scope,
|
||||
req.remoteQueryConfig.fields
|
||||
req.queryConfig.fields
|
||||
)
|
||||
|
||||
res.status(200).json({ api_key: updatedApiKey })
|
||||
|
||||
@@ -20,9 +20,9 @@ export const GET = async (
|
||||
entryPoint: "api_key",
|
||||
variables: {
|
||||
filters: req.filterableFields,
|
||||
...req.remoteQueryConfig.pagination,
|
||||
...req.queryConfig.pagination,
|
||||
},
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
fields: req.queryConfig.fields,
|
||||
})
|
||||
|
||||
const { rows: apiKeys, metadata } = await remoteQuery(queryObject)
|
||||
|
||||
Reference in New Issue
Block a user