diff --git a/.github/workflows/reusable-game-popularity-updater.yml b/.github/workflows/reusable-game-popularity-updater.yml index 5c7af8b..ace2a80 100644 --- a/.github/workflows/reusable-game-popularity-updater.yml +++ b/.github/workflows/reusable-game-popularity-updater.yml @@ -26,7 +26,7 @@ jobs: echo "Updating game popularity" echo "x-api-key: $CRON_KEY" echo "$URL/api/games/popularity" - RESPONSE=$(curl -X POST -H "x-api-key: $CRON_KEY" -w "\n%{http_code}\n" "$URL/api/games/popularity") + RESPONSE=$(curl -X POST -H "x-api-key: $CRON_KEY" -H "Content-Type: application/json" -d "{}"-w "\n%{http_code}\n" "$URL/api/games/popularity") STATUS=$(echo "$RESPONSE" | sed -n '2p') echo "Response: $RESPONSE" if [[ $STATUS == 200 ]]; then