Skip to content

Commit

Permalink
Merge pull request #1154 from jetstreamapp/bug/fix-api-db-cron-env-var-2
Browse files Browse the repository at this point in the history
Fix geo-ip API download url
  • Loading branch information
paustint authored Jan 29, 2025
2 parents 4042481 + 023b982 commit 71cd3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cron-tasks/src/geo-ip-api-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!GEO_IP_API_PASSWORD) {
}

async function initiateDownload() {
const response = await fetch(GEO_IP_API_HOSTNAME, {
const response = await fetch(`${GEO_IP_API_HOSTNAME}/api/download`, {
method: 'POST',
headers: {
Authorization: `Basic ${Buffer.from(`${GEO_IP_API_USERNAME}:${GEO_IP_API_PASSWORD}`).toString('base64')}`,
Expand Down

0 comments on commit 71cd3ea

Please sign in to comment.