mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 13:05:44 +00:00
UAT fixes and enhancements
This commit is contained in:
@@ -16,7 +16,19 @@ export class CurrenciesService {
|
||||
orderBy: { toCurrency: 'asc' },
|
||||
});
|
||||
|
||||
return rates.map(rate => ({
|
||||
const base = {
|
||||
id: 'etb-base',
|
||||
code: 'ETB',
|
||||
name: 'Ethiopian Birr',
|
||||
symbol: 'Br',
|
||||
baseCurrencyCode: 'ETB',
|
||||
exchangeRate: 1,
|
||||
isActive: true,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
};
|
||||
|
||||
return [base, ...rates.map(rate => ({
|
||||
id: rate.id,
|
||||
code: rate.toCurrency,
|
||||
name: this.getCurrencyName(rate.toCurrency),
|
||||
@@ -26,7 +38,7 @@ export class CurrenciesService {
|
||||
isActive: true,
|
||||
createdAt: rate.createdAt,
|
||||
updatedAt: rate.createdAt,
|
||||
}));
|
||||
}))];
|
||||
}
|
||||
|
||||
async createCurrency(dto: CreateCurrencyDto) {
|
||||
|
||||
Reference in New Issue
Block a user