From d0dc626466534c18ac60070b78463285b8c66e9b Mon Sep 17 00:00:00 2001 From: Lucid Date: Thu, 18 Dec 2025 22:02:30 -0500 Subject: [PATCH] fix cron --- .github/workflows/cron.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f33a9e8..45508e2 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -12,16 +12,7 @@ jobs: - name: Daily cron job | Create new dailyStats document. run: | curl --request POST \ - --url 'bot-stats.lucids-cove.duckdns.org/api/graphql' \ + --url 'https://bot-stats.lucids-cove.duckdns.org/api/graphql' \ --header 'x-api-key: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}' \ - --data '{ - "query": "mutation { - cronJob(mutationKey: ${{ secrets.GRAPHQL_MUTATION_KEY }}) { - commandResponses - createdAt - linksDeleted - timesTriggered - updatedAt - } - }" - }' + --header 'Content-Type: application/json' \ + --data '{ "query": "mutation Cron { cronJob ( mutationKey: \"${{ secrets.GRAPHQL_MUTATION_KEY }}\" ) { commandResponses createdAt linksDeleted timesTriggered updatedAt } }" }' \