fix mutation error

This commit is contained in:
Hongbo Wu
2024-03-21 12:07:09 +08:00
parent a939d0f484
commit ca371b6d42

View File

@ -13,7 +13,7 @@ export interface Task {
interface ExportToIntegrationDataResponseData {
exportToIntegration: {
Task: Task
task: Task
errorCodes?: string[]
}
}
@ -26,7 +26,7 @@ export async function exportToIntegrationMutation(integrationId: string) {
errorCodes
}
... on ExportToIntegrationSuccess {
Task {
task {
id
}
}
@ -41,5 +41,5 @@ export async function exportToIntegrationMutation(integrationId: string) {
throw error
}
return output.exportToIntegration.Task
return output.exportToIntegration.task
}