Skip to content

Commit

Permalink
Merge pull request #5 from kaleido-io/activatePool-stream-init
Browse files Browse the repository at this point in the history
[activatePool-stream-init] initializing stream in /activatepool
  • Loading branch information
dechdev authored Jan 20, 2022
2 parents c339170 + cebf597 commit 2ab302d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tokens/tokens.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ export class TokensService {
}

async activatePool(dto: TokenPoolActivate) {
if(this.stream === undefined) {
this.stream = await this.eventstream.createOrUpdateStream(this.topic);
}
await Promise.all([
this.eventstream.getOrCreateSubscription(
`${this.baseUrl}/${this.instancePath}`,
Expand Down

0 comments on commit 2ab302d

Please sign in to comment.