Browse Source

Refactoring

pull/5997/head
Thomas Kaul 4 weeks ago
parent
commit
721ddb0a22
  1. 12
      apps/api/src/services/queues/data-gathering/data-gathering.service.ts

12
apps/api/src/services/queues/data-gathering/data-gathering.service.ts

@ -307,18 +307,14 @@ export class DataGatheringService {
const symbolProfiles = await this.prismaService.symbolProfile.findMany({
orderBy: [{ symbol: 'asc' }],
where: {
dataSource: {
notIn: ['MANUAL', 'RAPID_API']
},
isActive: true
}
});
return symbolProfiles
.filter(({ dataSource }) => {
return (
dataSource !== DataSource.MANUAL &&
dataSource !== DataSource.RAPID_API
);
})
.map(({ dataSource, symbol }) => {
return symbolProfiles.map(({ dataSource, symbol }) => {
return {
dataSource,
symbol

Loading…
Cancel
Save