Skip to content

Commit c1fda47

Browse files
committed
docs(): update readme.md
1 parent 81574f9 commit c1fda47

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $ npm i @sinuos/nestjs-notification
2424
### Declare module
2525

2626
```typescript
27-
import { NestjsNotificationModule } from '@sinuos/nestjs-notify.module';
27+
import { NestjsNotificationModule } from '@sinuos/nestjs-notification.module';
2828

2929
@Module({
3030
imports: [NestjsNotificationModule.register()],
@@ -36,10 +36,10 @@ export class AppModule {}
3636

3737
```typescript
3838
import { Injectable } from '@nestjs/common';
39-
import { INestjsNotifyChannel } from '@sinuos/nestjs-notify.service';
39+
import { INestjsNotificationChannel } from '@sinuos/nestjs-notification.service';
4040

4141
@Injectable()
42-
export class NexmoChannel implements INestjsNotifyChannel {
42+
export class NexmoChannel implements INestjsNotificationChannel {
4343
constructor() {}
4444

4545
send(): Promise<any> {
@@ -51,9 +51,9 @@ export class NexmoChannel implements INestjsNotifyChannel {
5151
### Notification
5252

5353
```typescript
54-
import { NestJsNotify } from '@sinuos/nestjs-notify.service';
54+
import { NestJsNotification } from '@sinuos/nestjs-notification.service';
5555

56-
export class InvoicPaidNotification implements NestJsNotify {
56+
export class InvoicPaidNotification implements NestJsNotification {
5757
public sendToChannels() {
5858
return [NexmoChannel];
5959
}
@@ -68,15 +68,15 @@ export class InvoicPaidNotification implements NestJsNotify {
6868

6969
```typescript
7070
import { Injectable } from '@nestjs/common';
71-
import { NestjsNotificationService } from '@sinuos/nestjs-notify.service';
71+
import { NestjsNotificationService } from '@sinuos/nestjs-notification.service';
7272

7373
@Injectable()
7474
export class AppService {
75-
constructor(private notify: NestjsNotificationService) {}
75+
constructor(private notification: NestjsNotificationService) {}
7676

77-
notify() {
77+
notification() {
7878
const notification = new InvoicePaidNotification();
79-
this.notify.send(notification);
79+
this.notification.send(notification);
8080
}
8181
}
8282
```

0 commit comments

Comments
 (0)