Skip to content

Commit

Permalink
fix(core): Make sure that special polling parameters are available on…
Browse files Browse the repository at this point in the history
… community nodes as well (#6230)

This broke in 0.227.0.
  • Loading branch information
netroy committed May 11, 2023
1 parent 823e885 commit 9db49d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/cli/src/NodeTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import { LoadNodesAndCredentials } from './LoadNodesAndCredentials';

@Service()
export class NodeTypes implements INodeTypes {
constructor(private nodesAndCredentials: LoadNodesAndCredentials) {
constructor(private nodesAndCredentials: LoadNodesAndCredentials) {}

init() {
// Some nodeTypes need to get special parameters applied like the
// polling nodes the polling times
this.applySpecialNodeParameters();
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/commands/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export abstract class BaseCommand extends Command {

protected loadNodesAndCredentials: LoadNodesAndCredentials;

protected nodeTypes: INodeTypes;
protected nodeTypes: NodeTypes;

protected userSettings: IUserSettings;

Expand All @@ -51,6 +51,7 @@ export abstract class BaseCommand extends Command {
this.loadNodesAndCredentials = Container.get(LoadNodesAndCredentials);
await this.loadNodesAndCredentials.init();
this.nodeTypes = Container.get(NodeTypes);
this.nodeTypes.init();
const credentialTypes = Container.get(CredentialTypes);
CredentialsOverwrites(credentialTypes);

Expand Down

0 comments on commit 9db49d0

Please sign in to comment.