This commit was merged in pull request #202.
This commit is contained in:
@@ -244,16 +244,23 @@ export class TbankHourlyScheduler implements OnModuleDestroy, OnModuleInit {
|
||||
dispatchProblems: HourlySection[],
|
||||
walkStartedAt: Date,
|
||||
) {
|
||||
const portfolios: string[] = [];
|
||||
for (const account of accounts) {
|
||||
await this.dispatchPortfolio(
|
||||
userId,
|
||||
revision,
|
||||
account.accountId,
|
||||
dispatch,
|
||||
async (child) => {
|
||||
portfolios.push(child.id);
|
||||
await dispatch(child);
|
||||
},
|
||||
dispatchProblems,
|
||||
walkStartedAt,
|
||||
);
|
||||
}
|
||||
// Operations coverage must end after the Portfolio valuation it explains:
|
||||
// performance requires coverage up to the snapshot fetchedAt.
|
||||
await this.waitWorks(userId, portfolios);
|
||||
for (const account of accounts) {
|
||||
await this.dispatchOperations(
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user