Browse Source

Refactoring

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

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

@ -307,23 +307,19 @@ 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 {
return ( dataSource,
dataSource !== DataSource.MANUAL && symbol
dataSource !== DataSource.RAPID_API };
); });
})
.map(({ dataSource, symbol }) => {
return {
dataSource,
symbol
};
});
} }
private async getAssetProfileIdentifiersWithCompleteMarketData(): Promise< private async getAssetProfileIdentifiersWithCompleteMarketData(): Promise<

Loading…
Cancel
Save