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 <[email protected]>
  • Loading branch information
m-courtin committed Oct 8, 2021
1 parent e6099b8 commit 78a8ea3
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 78a8ea3

Please sign in to comment.