Skip to content

Commit

Permalink
fix: fix wrong export of subscription type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Nov 11, 2024
1 parent 3cbe58b commit 9858d08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/composables/gql-mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function gqlMutation<T = any>(method: string, options: IGraphQLOpti

if (data) {
// check if data[method] is boolean value
if (typeof data[method] === 'boolean') {
if (typeof data[method] === 'boolean' || typeof data[method] === 'number') {
data = data[method];
} else {
data = data[method] ? data[method] : data;
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/gql-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function gqlQuery<T = any>(method: string, options: IGraphQLOptions

if (data) {
// check if data[method] is boolean value
if (typeof data[method] === 'boolean') {
if (typeof data[method] === 'boolean' || typeof data[method] === 'number') {
data = data[method];
} else {
data = data[method] ? data[method] : data;
Expand Down

0 comments on commit 9858d08

Please sign in to comment.