Skip to content

Commit

Permalink
fix(aggregator): fix logo url is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
g-ongenae committed Oct 7, 2021
1 parent 991c6ad commit af73e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aggregator/services/aggregator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ export class AggregatorService {
* Get the url of the logo of the bank
*/
public getBankLogoUrl(connection?: Connection, clientConfig?: ClientConfig): string | undefined {
return connection?.connector?.id === undefined
return connection?.connector?.uuid === undefined
? undefined
: `${this.budgetInsightClient.getClientConfig(clientConfig).baseUrl}logos/${
connection.connector.uuid
}-thumbnail@2px.png`;
}-thumbnail@2x.png`;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('BudgetInsightUtils', () => {
bank: {
id: '2',
name: 'bank-name',
logoUrl: 'http://localhost:4000/logos/example-uuid-thumbnail@2px.png',
logoUrl: 'http://localhost:4000/logos/example-uuid-thumbnail@2x.png',
},
coming: 0,
currency: 'USD',
Expand Down Expand Up @@ -151,7 +151,7 @@ describe('BudgetInsightUtils', () => {
bank: {
id: '2',
name: 'bank-name',
logoUrl: 'http://localhost:4000/logos/example-uuid-thumbnail@2px.png',
logoUrl: 'http://localhost:4000/logos/example-uuid-thumbnail@2x.png',
},
coming: 120,
currency: 'USD',
Expand Down

0 comments on commit af73e04

Please sign in to comment.