|
|
@ -100,8 +100,9 @@ export class AdminController { |
|
|
|
|
|
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
|
|
|
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
|
await this.dataGatheringService.addJobToQueue({ |
|
|
|
await this.dataGatheringService.addJobsToQueue( |
|
|
|
uniqueAssets.map(({ dataSource, symbol }) => { |
|
|
|
return { |
|
|
|
data: { |
|
|
|
dataSource, |
|
|
|
symbol |
|
|
@ -111,8 +112,9 @@ export class AdminController { |
|
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
|
this.dataGatheringService.gatherMax(); |
|
|
|
} |
|
|
@ -134,8 +136,9 @@ export class AdminController { |
|
|
|
|
|
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
|
|
|
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
|
await this.dataGatheringService.addJobToQueue({ |
|
|
|
await this.dataGatheringService.addJobsToQueue( |
|
|
|
uniqueAssets.map(({ dataSource, symbol }) => { |
|
|
|
return { |
|
|
|
data: { |
|
|
|
dataSource, |
|
|
|
symbol |
|
|
@ -145,8 +148,9 @@ export class AdminController { |
|
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
}) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@Post('gather/profile-data/:dataSource/:symbol') |
|
|
|