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({ const symbolProfiles = await this.prismaService.symbolProfile.findMany({
orderBy: [{ symbol: 'asc' }], orderBy: [{ symbol: 'asc' }],
where: { where: {
dataSource: {
notIn: ['MANUAL', 'RAPID_API']
},
isActive: true isActive: true
} }
}); });
return symbolProfiles return symbolProfiles.map(({ dataSource, symbol }) => {
.filter(({ dataSource }) => {
return (
dataSource !== DataSource.MANUAL &&
dataSource !== DataSource.RAPID_API
);
})
.map(({ dataSource, symbol }) => {
return { return {
dataSource, dataSource,
symbol symbol

Loading…
Cancel
Save