Skip to content

Commit

Permalink
Supported empty env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Aug 18, 2024
1 parent 7b343f0 commit c9203c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/abcLauncher/AbcLauncherAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ABC_LAUNCH_COLLECTION = config.get('ABC_LAUNCH_COLLECTION') || 'project';
const ABC_LAUNCH_DATABASE = config.get('ABC_LAUNCH_DATABASE') || 'abc-launcher';

// add '/' if doesn't exist at the
const baseUrl = ABC_LAUNCH_API_URL.endsWith('/')
const baseUrl = (ABC_LAUNCH_API_URL || '').endsWith('/')
? ABC_LAUNCH_API_URL
: `${ABC_LAUNCH_API_URL}/`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const DONATION_SAVE_BACKUP_DATABASE =
config.get('DONATION_SAVE_BACKUP_DATABASE') || 'failed_donation';

// add '/' if doesn't exist at the
const baseUrl = DONATION_SAVE_BACKUP_API_URL.endsWith('/')
const baseUrl = (DONATION_SAVE_BACKUP_API_URL || '').endsWith('/')
? DONATION_SAVE_BACKUP_API_URL
: `${DONATION_SAVE_BACKUP_API_URL}/`;

Expand Down

0 comments on commit c9203c6

Please sign in to comment.