Skip to content

Commit

Permalink
Merge pull request #69 from aem-design/fix/replicationTypeDelete
Browse files Browse the repository at this point in the history
Fixing the issue when Replication Type is delete
  • Loading branch information
wildone authored Apr 26, 2021
2 parents 9fa6215 + 66d5961 commit 35eb7c0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ public ReplicationResult deliver(TransportContext ctx, ReplicationTransaction tx
ReplicationActionType replicationType = tx.getAction().getType();

// only runs the code if ReplicationAction type matches any of the following
if (replicationType == ReplicationActionType.TEST || replicationType == ReplicationActionType.ACTIVATE || replicationType == ReplicationActionType.DEACTIVATE) {
if (replicationType == ReplicationActionType.TEST ||
replicationType == ReplicationActionType.ACTIVATE ||
replicationType == ReplicationActionType.DEACTIVATE ||
replicationType == ReplicationActionType.DELETE ) {
return handleRequest(tx);
} else {
throw new ReplicationException("Replication action type " + replicationType + " not supported.");
Expand Down

0 comments on commit 35eb7c0

Please sign in to comment.