Skip to content

Commit 4988097

Browse files
fix: Fix readme
1 parent 50d27ef commit 4988097

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class SendMessageHandler implements IMessageHandler<SendMessage> {
110110
// use the `@DenormalizeMessage()` decorator on the parameter:
111111
// async handle(@DenormalizeMessage() message: SendMessage): Promise<MessageResponse | void> {
112112

113-
async handle(message: SendMessage): Promise<MessageResponse | void> {
113+
async handle(message: SendMessage): Promise<object | void> {
114114
console.log(message.content);
115115
// Example handling logic
116116
}
@@ -144,7 +144,7 @@ export class AppController {
144144
}
145145
```
146146

147-
### Explanation:
147+
### Flow:
148148

149149
1. **Flexible Dispatching**:
150150
- You can call the `dispatch` method from any layer (e.g., controller, service, or scheduled job). This example uses an HTTP `GET` endpoint for demonstration.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestjstools/messaging",
3-
"version": "2.17.0",
3+
"version": "2.17.1",
44
"description": "Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.",
55
"author": "Sebastian Iwanczyszyn",
66
"license": "MIT",

0 commit comments

Comments
 (0)