Refactor exchange rate service to use promises instead of observables #9

Open
opened 10 months ago by inga-lovinde · 0 comments
Owner

Currently, ExchangeRateService.prototype.convertCurrency is implemented to return Observable<ExchangeRateResponse>, making it difficult and non-straighforward to use, while providing zero benefit (convertCurrency is only supposed to return one value anyway).

Better to refactor it into a standard async function. Doing it now does not make a lot of sense though, because it should be rewritten in #7 anyway.

Currently, `ExchangeRateService.prototype.convertCurrency` is implemented to return `Observable<ExchangeRateResponse>`, making it difficult and non-straighforward to use, while providing zero benefit (`convertCurrency` is only supposed to return one value anyway). Better to refactor it into a standard async function. Doing it now does not make a lot of sense though, because it should be rewritten in #7 anyway.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: inga-lovinde/test-assignment-payments#9
Loading…
There is no content yet.