Skip to content

Commit

Permalink
fix(nats): changed subject mask to ensure all events for did are capt…
Browse files Browse the repository at this point in the history
…ured

<. sign did not capture all possible events. *.*. seems to work accurately.
  • Loading branch information
Passerino committed Dec 10, 2021
1 parent 9dadda9 commit 3959f54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -395,7 +395,7 @@ ___

| Name | Type |
| :------ | :------ |
| `claim` | `Pick`<[`Claim`](../interfaces/modules_claims_claims_types.Claim.md), ``"token"`` \| ``"subjectAgreement"`` \| ``"onChainProof"``\> |
| `claim` | `Pick`<[`Claim`](../interfaces/modules_claims_claims_types.Claim.md), ``"token"`` \| ``"subjectAgreement"`` \| ``"onChainProof"`` \| ``"acceptedBy"``\> |

#### Returns

Expand Down
4 changes: 2 additions & 2 deletions docs/api/modules/modules_claims_claims_types.md
Expand Up @@ -105,7 +105,7 @@ ___

### readyToBeRegisteredOnchain

`Const` **readyToBeRegisteredOnchain**(`claim`): claim is Required<Pick<Claim, "token" \| "subjectAgreement" \| "onChainProof"\>\>
`Const` **readyToBeRegisteredOnchain**(`claim`): claim is Required<Pick<Claim, "token" \| "subjectAgreement" \| "onChainProof" \| "acceptedBy"\>\>

#### Parameters

Expand All @@ -115,4 +115,4 @@ ___

#### Returns

claim is Required<Pick<Claim, "token" \| "subjectAgreement" \| "onChainProof"\>\>
claim is Required<Pick<Claim, "token" \| "subjectAgreement" \| "onChainProof" \| "acceptedBy"\>\>
2 changes: 1 addition & 1 deletion src/modules/messaging/messaging.service.ts
Expand Up @@ -50,7 +50,7 @@ export class MessagingService {
}

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

0 comments on commit 3959f54

Please sign in to comment.