Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowFactoryTeam committed Sep 8, 2023
2 parents 4d511d3 + d05b2a8 commit c0d7b6f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,11 @@ function startWebserver() {
// Check if the event has a corresponding plugin
if (eventPlugins[eventName]) {
const pluginFunction = eventPlugins[eventName];
pluginFunction(eventData, projectConfigs, api, defaultBranch, () => {
res.send('Project Create Event handled successfully.');
});

if (typeof pluginFunction === 'function') {
pluginFunction(eventData, projectConfigs, api, defaultBranch, () => {
res.send('Project Create Event handled successfully.');
});
}
} else {
console.log(`No plugin found for event: ${eventName}`);
}
Expand Down

0 comments on commit c0d7b6f

Please sign in to comment.