Skip to content

Commit 0158dfd

Browse files
Johan BookJohan Book
Johan Book
authored and
Johan Book
committed
fix(api): fix typo
1 parent 4e07bd2 commit 0158dfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/api/src/core/notifications/application/contracts/dtos/notification-meta.dto.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export enum NotificationEventNames {
55
Notification = "notification",
66
}
77

8-
export class WebSocketNotificationDetail {
8+
export class NotificationWebSocketDetails {
99
description!: string;
1010
data?: NotificationData;
1111
message!: string;
@@ -15,7 +15,7 @@ export class WebSocketNotificationDetail {
1515

1616
export class NotificationMetaDetails {
1717
ws!: {
18-
detail: WebSocketNotificationDetail;
18+
details: NotificationWebSocketDetails;
1919
eventNames: NotificationEventNames;
2020
};
2121
}

services/api/src/core/notifications/client/gateways/notification.gateway.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { map } from "src/core/mapper";
1111

1212
import {
1313
NotificationEventNames,
14-
WebSocketNotificationDetail,
14+
NotificationWebSocketDetails,
1515
} from "../../application/contracts/dtos/notification-meta.dto";
1616
import { INotification } from "../../types";
1717

@@ -63,7 +63,7 @@ export class NotificationGateway
6363
return false;
6464
}
6565

66-
const notificationDto = map(WebSocketNotificationDetail, notification);
66+
const notificationDto = map(NotificationWebSocketDetails, notification);
6767

6868
socket.emit(NotificationEventNames.Notification, notificationDto);
6969

0 commit comments

Comments
 (0)