mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 17:09:09 +01:00
Decouple core Yaak logic from Tauri (#354)
This commit is contained in:
@@ -33,7 +33,7 @@ export function useIntrospectGraphQL(
|
||||
const upsertIntrospection = useCallback(
|
||||
async (content: string | null) => {
|
||||
const v = await invoke<GraphQlIntrospection>(
|
||||
'plugin:yaak-models|upsert_graphql_introspection',
|
||||
'models_upsert_graphql_introspection',
|
||||
{
|
||||
requestId: baseRequest.id,
|
||||
workspaceId: baseRequest.workspaceId,
|
||||
@@ -122,7 +122,7 @@ function useIntrospectionResult(request: HttpRequest) {
|
||||
return useQuery({
|
||||
queryKey: ['introspection', request.id],
|
||||
queryFn: async () =>
|
||||
invoke<GraphQlIntrospection | null>('plugin:yaak-models|get_graphql_introspection', {
|
||||
invoke<GraphQlIntrospection | null>('models_get_graphql_introspection', {
|
||||
requestId: request.id,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user