-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ MEX-666 ] Currency Converter #1551
base: development
Are you sure you want to change the base?
Conversation
@@ -323,6 +323,14 @@ export class ApiConfigService { | |||
return elasticSearchUrl; | |||
} | |||
|
|||
getOepnExchangeRateAppID(): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo : getOepnExchangeRateAppID
-> getOpenExchangeRateAppID
@@ -323,6 +323,14 @@ export class ApiConfigService { | |||
return elasticSearchUrl; | |||
} | |||
|
|||
getOepnExchangeRateAppID(): string { | |||
const app_id = this.configService.get<string>('OPEN_EXCHANGE_RATES_APP_ID'); | |||
if (!app_id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use camelCase when declaring variables -> appId
|
||
try { | ||
const response = await this.apiService.get( | ||
'https://openexchangerates.org/api/latest.json', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move the URL in the .env file as well
Reasoning
Proposed Changes
How to test