mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Pass input into setIntegration mutation
This commit is contained in:
parent
63ac113c55
commit
24893f1cd4
1 changed files with 2 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { gql } from 'graphql-request'
|
||||
import { gqlFetcher } from '../networkHelpers'
|
||||
|
||||
type IntegrationType = 'readwise'
|
||||
import { IntegrationType } from '../queries/useGetIntegrationsQuery'
|
||||
|
||||
export type SetIntegrationInput = {
|
||||
id?: string
|
||||
|
|
@ -54,7 +53,7 @@ export async function setIntegrationMutation(
|
|||
`
|
||||
|
||||
try {
|
||||
const data = await gqlFetcher(mutation) as SetIntegrationResult
|
||||
const data = await gqlFetcher(mutation, { input }) as SetIntegrationResult
|
||||
console.log(input, data);
|
||||
const output = data as any
|
||||
console.log(output)
|
||||
|
|
|
|||
Loading…
Reference in a new issue