Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into add-personalization-t…
Browse files Browse the repository at this point in the history
…o-getters
  • Loading branch information
Magnus-Kuhn committed Oct 25, 2024
2 parents 65ba670 + b4499b4 commit baace36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/runtime/src/modules/RequestModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class RequestModule extends RuntimeModule {
}

this.logger.info(
`There is already an open Relationship for the RelationshipTemplate '${template.id}' and onExistingRelationship is not defined. Skipping creation of a new request.`
`There is already an active Relationship to the creator of the RelationshipTemplate '${template.id}' and an onExistingRelationship Request is not defined. Skipping creation of a new Request.`
);
this.runtime.eventBus.publish(
new RelationshipTemplateProcessedEvent(event.eventTargetAddress, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TransportError } from "../../../core";
import { ExternalEventProcessorConstructor } from "./ExternalEventProcessor";
import { IdentityDeletionProcessChangedExternalEventProcessor } from "./IdentityDeletionProcessChangedExternalEventProcessor";
import { IdentityDeletionProcessStartedExternalEventProcessor } from "./IdentityDeletionProcessStartedExternalEventProcessor";
import { IdentityDeletionProcessStatusChangedExternalEventProcessor } from "./IdentityDeletionProcessStatusChangedExternalEventProcessor";
import { MessageDeliveredExternalEventProcessor } from "./MessageDeliveredExternalEventProcessor";
import { MessageReceivedExternalEventProcessor } from "./MessageReceivedExternalEventProcessor";
import { PeerDeletedExternalEventProcessor } from "./PeerDeletedExternalEventProcessor";
Expand All @@ -20,7 +20,7 @@ export class ExternalEventProcessorRegistry {
this.registerProcessor("RelationshipReactivationRequested", RelationshipReactivationRequestedExternalEventProcessor);
this.registerProcessor("RelationshipReactivationCompleted", RelationshipReactivationCompletedExternalEventProcessor);
this.registerProcessor("IdentityDeletionProcessStarted", IdentityDeletionProcessStartedExternalEventProcessor);
this.registerProcessor("IdentityDeletionProcessStatusChanged", IdentityDeletionProcessChangedExternalEventProcessor);
this.registerProcessor("IdentityDeletionProcessStatusChanged", IdentityDeletionProcessStatusChangedExternalEventProcessor);
this.registerProcessor("PeerDeleted", PeerDeletedExternalEventProcessor);
this.registerProcessor("PeerDeletionCancelled", PeerDeletionCancelledExternalEventProcessor);
this.registerProcessor("PeerToBeDeleted", PeerToBeDeletedExternalEventProcessor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { IdentityDeletionProcess } from "../../accounts/data/IdentityDeletionPro
import { BackboneExternalEvent } from "../backbone/BackboneExternalEvent";
import { ExternalEventProcessor } from "./ExternalEventProcessor";

class IdentityDeletionProcessChangedEventData extends Serializable {
class IdentityDeletionProcessStatusChangedEventData extends Serializable {
@serialize()
@validate()
public deletionProcessId: string;
}

export class IdentityDeletionProcessChangedExternalEventProcessor extends ExternalEventProcessor {
export class IdentityDeletionProcessStatusChangedExternalEventProcessor extends ExternalEventProcessor {
public override async execute(externalEvent: BackboneExternalEvent): Promise<IdentityDeletionProcess> {
const messageReceivedPayload = IdentityDeletionProcessChangedEventData.fromAny(externalEvent.payload);
const messageReceivedPayload = IdentityDeletionProcessStatusChangedEventData.fromAny(externalEvent.payload);

const newIdentityDeletionProcess = await this.accountController.identityDeletionProcess.updateCacheOfExistingIdentityDeletionProcess(
messageReceivedPayload.deletionProcessId
Expand Down

0 comments on commit baace36

Please sign in to comment.