*Fix for loop iteration
This commit is contained in:
parent
61e10d8121
commit
6283e8c1b1
|
@ -67,8 +67,10 @@ export class RPCServer {
|
||||||
public getMethods(): string[] {
|
public getMethods(): string[] {
|
||||||
const methods = [];
|
const methods = [];
|
||||||
|
|
||||||
for (const module in this.methods) {
|
for (const module of this.methods.keys()) {
|
||||||
for (const method in this.methods.get(module)) {
|
for (const method of (
|
||||||
|
this.methods.get(module) as Map<string, RPCMethod>
|
||||||
|
).keys()) {
|
||||||
methods.push(`${module}.${method}`);
|
methods.push(`${module}.${method}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue