refactor: simplify plugin registration by removing unnecessary object structure
This commit is contained in:
@ -81,9 +81,7 @@ export class QueryExecuterService {
|
||||
throw new Error(`Plugin ${plugin.name} not found`);
|
||||
}
|
||||
|
||||
plugins.push(
|
||||
await registeredPlugins[plugin.name].initMethod(this, query)
|
||||
);
|
||||
plugins.push(await registeredPlugins[plugin.name](this, query));
|
||||
}
|
||||
|
||||
const vm = new Vm({
|
||||
|
||||
Reference in New Issue
Block a user