Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Aug 16, 2024
1 parent 722143d commit 17e9108
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/runtime/composables/gql-mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import { tryUseNuxtApp, useNuxtApp } from 'nuxt/app';
import type { GraphQLMeta } from '../classes/graphql-meta.class';
import type { IGraphQLOptions } from '../interfaces/graphql-options.interface';

import { hashPasswords } from '../functions/graphql-meta';

export async function gqlMutation<T = any>(method: string, options: IGraphQLOptions = {}): Promise<UseMutationReturn<T, any>> {
export function gqlMutation<T = any>(method: string, options: IGraphQLOptions = {}): UseMutationReturn<T, any> {
const useGqlMeta = () => {
console.log('nuxtApp', tryUseNuxtApp());
const nuxtApp = useNuxtApp();
Expand Down Expand Up @@ -44,9 +42,9 @@ export async function gqlMutation<T = any>(method: string, options: IGraphQLOpti

const meta = useGqlMeta();

if (config.hashPasswords) {
config.variables = await hashPasswords(config.variables);
}
// if (config.hashPasswords) {
// config.variables = await hashPasswords(config.variables);
// }

const argType = meta.getArgs(method);
const builderInput = {};
Expand Down

0 comments on commit 17e9108

Please sign in to comment.