Skip to content

Commit

Permalink
fix return on send
Browse files Browse the repository at this point in the history
  • Loading branch information
edstevo committed Mar 31, 2021
1 parent 93985b3 commit b27ab33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nestjs-notifications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class NestJsNotificationsService implements OnModuleInit {
* Process a notification and send via designated channel
* @param notification
*/
public send(notification: NestJsNotification): Promise<void[]> {
public send(notification: NestJsNotification): Promise<any> {
const channels = notification.broadcastOn();
return Promise.all(
channels.map((channel: Type<NestJsNotificationChannel>) =>
Expand Down

0 comments on commit b27ab33

Please sign in to comment.