Browse Source

Refactoring

pull/2631/head
Thomas 2 years ago
parent
commit
c425619ea6
  1. 20
      apps/api/src/services/market-data/market-data.service.ts

20
apps/api/src/services/market-data/market-data.service.ts

@ -74,15 +74,17 @@ export class MarketDataService {
} }
], ],
where: { where: {
OR: uniqueAssets.map(({ dataSource, symbol }) => ({ OR: uniqueAssets.map(({ dataSource, symbol }) => {
AND: [ return {
{ AND: [
dataSource, {
symbol, dataSource,
date: dateQuery symbol,
} date: dateQuery
] }
})) ]
};
})
} }
}); });
} }

Loading…
Cancel
Save