Skip to content

Commit 793368c

Browse files
justandrasJulusian
andauthored
fix: add default case for unknown DBNotificationTargetTypes
Co-authored-by: Julian Waller <git@julusian.co.uk>
1 parent 2a480c8 commit 793368c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/live-status-gateway/src/topics/helpers/notification/notificationTarget/toNotificationTarget.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export function toNotificationTarget(dbTarget: DBNotificationTarget): Notificati
3131
return toNotificationTargetPlaylist(dbTarget)
3232
case DBNotificationTargetType.PIECEINSTANCE:
3333
return toNotificationTargetPieceInstance(dbTarget)
34+
default:
35+
assertNever(dbTarget)
36+
return undefined
3437
}
3538
}
3639

0 commit comments

Comments
 (0)