fix pairs page response format
This commit is contained in:
parent
2861ca9a77
commit
55f431873d
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ class DexModel {
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const pairsWithCurrencies: PairWithCurrencies[] = pairs;
|
const pairsWithCurrencies: PairWithCurrencies[] = pairs.map((pair) => pair.toJSON());
|
||||||
|
|
||||||
for (let i = 0; i < pairs.length; i++) {
|
for (let i = 0; i < pairs.length; i++) {
|
||||||
pairsWithCurrencies[i].first_currency = await configModel.getCurrencyRow(
|
pairsWithCurrencies[i].first_currency = await configModel.getCurrencyRow(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue