Skip to content

Commit

Permalink
fix: fixes issue 1444 invoking the onPluginInit
Browse files Browse the repository at this point in the history
In api server the instantiatePlugin function is now calling the required
onPluginInit for each corresponding connector

Closes: hyperledger-cacti#1444
Signed-off-by: Michael Courtin <michael.courtin@accenture.com>
  • Loading branch information
m-courtin committed Oct 7, 2021
1 parent 72c9b6c commit c06cf00
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ export class ApiServer {
const pluginFactory = await createPluginFactory(pluginFactoryOptions);

const plugin = await pluginFactory.create(pluginOptions);

// need to invoke the i-cactus-plugin onPluginInit functionality here before plugin registry can be used further
await plugin.onPluginInit();

return plugin;
}

Expand Down

0 comments on commit c06cf00

Please sign in to comment.