refactor: remove unused payloads from RQ
This commit is contained in:
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useActionSubsteps(appKey, actionKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['actionSubsteps', appKey, actionKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(
|
||||
`/v1/apps/${appKey}/actions/${actionKey}/substeps`,
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useActions(appKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['actions', appKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/apps/${appKey}/actions`, {
|
||||
signal,
|
||||
});
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useAdminAppAuthClient(id) {
|
||||
const query = useQuery({
|
||||
queryKey: ['adminAppAuthClient', id],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/admin/app-auth-clients/${id}`, {
|
||||
signal,
|
||||
});
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useApp(appKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['app', appKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/apps/${appKey}`, {
|
||||
signal,
|
||||
});
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useAppAuth(appKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['appAuth', appKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/apps/${appKey}/auth`, {
|
||||
signal,
|
||||
});
|
||||
|
@@ -4,7 +4,7 @@ import api from 'helpers/api';
|
||||
export default function useAppConfig(appKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['appConfig', appKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/app-configs/${appKey}`, {
|
||||
signal,
|
||||
});
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useApps(variables) {
|
||||
const query = useQuery({
|
||||
queryKey: ['apps', variables],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get('/v1/apps', {
|
||||
params: variables,
|
||||
signal,
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useTriggerSubsteps(appKey, triggerKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['triggerSubsteps', appKey, triggerKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(
|
||||
`/v1/apps/${appKey}/triggers/${triggerKey}/substeps`,
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ import api from 'helpers/api';
|
||||
export default function useTriggers(appKey) {
|
||||
const query = useQuery({
|
||||
queryKey: ['triggers', appKey],
|
||||
queryFn: async ({ payload, signal }) => {
|
||||
queryFn: async ({ signal }) => {
|
||||
const { data } = await api.get(`/v1/apps/${appKey}/triggers`, {
|
||||
signal,
|
||||
});
|
||||
|
Reference in New Issue
Block a user