Skip to content

Commit

Permalink
Merge pull request #317 from NibiruChain/develop
Browse files Browse the repository at this point in the history
fix: latest schema
  • Loading branch information
cgilbe27 authored Feb 6, 2024
2 parents 967e230 + d9c1bb3 commit 1f6b83c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/gql/query/marketing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@ export const marketingQueryString = (
)
}

// No args
if (fields?.tasks) {
marketingQuery.push(
gqlQuery("tasks", {}, convertObjectToPropertiesString(defaultTask), true)
gqlQuery(
"tasks",
args.tasks ?? {},
convertObjectToPropertiesString(fields.tasks),
true
)
)
}

Expand All @@ -94,6 +98,17 @@ export const marketingQueryString = (
)
}

if (args.tasks && !fields?.tasks) {
marketingQuery.push(
gqlQuery(
"tasks",
args.tasks,
convertObjectToPropertiesString(defaultTask),
true
)
)
}

if (args.tweets && !fields?.tweets) {
marketingQuery.push(
gqlQuery(
Expand Down

1 comment on commit 1f6b83c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 93%
94.47% (1197/1267) 86.28% (541/627) 88.03% (309/351)

Please sign in to comment.