Skip to content

Commit

Permalink
Updated condition to check for correct publish API (#5399)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano authored Dec 30, 2020
1 parent da63bc9 commit 32a4899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composer/packages/server/src/controllers/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const PublishController = {
// get the publish plugin key
const extensionName = profile ? profile.type : '';

if (profile && extensionImplementsMethod(extensionName, 'history')) {
if (profile && extensionImplementsMethod(extensionName, 'getHistory')) {
// get the externally defined method
const pluginMethod = ExtensionContext.extensions.publish[extensionName].methods.getHistory;
if (typeof pluginMethod === 'function') {
Expand Down

0 comments on commit 32a4899

Please sign in to comment.