Skip to content

Commit 64722c3

Browse files
committed
WIP
- Handle invalid matchedTag for alerts
1 parent bbc0c62 commit 64722c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/api/V1/recordingUtil.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,10 @@ export async function sendAlerts(recId: RecordingId, debug = false) {
16651665

16661666
const matchedTrack: Track = bestTrack.track;
16671667
const matchedTag: TrackTag = bestTrack.trackTag;
1668+
if (!matchedTag.path) {
1669+
matchedTag.path = "";
1670+
log.error("Path missing for matched tag %s", matchedTag.what);
1671+
}
16681672
// Find the hierarchy for the matchedTag
16691673

16701674
// FIXME: Don't calculate best track thumbnail etc if there are no possible alerts for recording?

0 commit comments

Comments
 (0)