Skip to content

Commit ccfac29

Browse files
authored
Fix root networks deleted notification (#3211)
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent d2e1da6 commit ccfac29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types/notification-types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export enum NotificationType {
2525
// Root networks
2626
ROOT_NETWORKS_UPDATED = 'rootNetworksUpdated',
2727
ROOT_NETWORKS_UPDATE_FAILED = 'rootNetworksUpdateFailed',
28-
ROOT_NETWORK_DELETION_STARTED = 'rootNetworkDeletionStarted',
28+
ROOT_NETWORKS_DELETION_STARTED = 'rootNetworksDeletionStarted',
2929
// Nodes and tree
3030
NODE_CREATED = 'nodeCreated',
3131
NODES_DELETED = 'nodeDeleted',
@@ -201,7 +201,7 @@ interface RootNetworkUpdateFailedEventDataHeaders extends CommonStudyEventDataHe
201201
}
202202

203203
interface RootNetworkDeletionStartedEventDataHeaders extends CommonStudyEventDataHeaders {
204-
updateType: NotificationType.ROOT_NETWORK_DELETION_STARTED;
204+
updateType: NotificationType.ROOT_NETWORKS_DELETION_STARTED;
205205
rootNetworksUuids: UUID[];
206206
}
207207

@@ -872,7 +872,7 @@ export function isStateEstimationResultNotification(notif: unknown): notif is St
872872
export function isRootNetworkDeletionStartedNotification(notif: unknown): notif is RootNetworkDeletionStartedEventData {
873873
return (
874874
(notif as RootNetworkDeletionStartedEventData).headers?.updateType ===
875-
NotificationType.ROOT_NETWORK_DELETION_STARTED
875+
NotificationType.ROOT_NETWORKS_DELETION_STARTED
876876
);
877877
}
878878

0 commit comments

Comments
 (0)