Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
samarth52 committed Nov 18, 2024
1 parent e014dcc commit 16a38b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-game-popularity-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16a38b9

Please sign in to comment.