Skip to content

Commit

Permalink
fix(messaging): subsribe to channels from claims channel
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Nov 17, 2021
1 parent cfc962e commit 4788a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/messaging/messaging.service.ts
@@ -1,6 +1,6 @@
import { Codec, connect, JSONCodec, NatsConnection, Subscription } from "nats.ws";
import { getMessagingConfig } from "../../config/messaging.config";
import { IMessage, MessagingMethod } from "./messaging.types";
import { IMessage, MessagingMethod, NATS_EXCHANGE_TOPIC } from "./messaging.types";
import { SignerService } from "../signer/signer.service";

export class MessagingService {
Expand Down Expand Up @@ -47,7 +47,7 @@ export class MessagingService {
}

async subscribeTo({
subject = this._signerService.did,
subject = `${this._signerService.did}.${NATS_EXCHANGE_TOPIC}`,
messageHandler,
}: {
subject?: string;
Expand Down

0 comments on commit 4788a97

Please sign in to comment.