From 47563211af699c817069876c146a5ea6d4f9d88a Mon Sep 17 00:00:00 2001 From: Lucid Date: Mon, 22 Dec 2025 15:45:52 -0500 Subject: [PATCH] update cron and cronJob typeDef --- .github/workflows/cron.yml | 2 +- src/graphql/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 06e8727..8855360 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -18,4 +18,4 @@ jobs: --url 'https://bot-stats.lucids-cove.duckdns.org/api/graphql' \ --header 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \ --header 'Content-Type: application/json' \ - --data 'mutation Cron { cronJob ( mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }} ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }' \ + --data '{ "query": "mutation Cron { cronJob ( mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }} ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \ diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 0e44ebf..58d3486 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -13,7 +13,7 @@ const typeDefs = /* GraphQL */ ` } type Mutation { init(mutationKey: String): String! - cronJob(mutationKey: String): TotalStats! + cronJob(mutationKey: String): TotalStats addGroup( groupID: String! groupName: String!