File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/api/src/tasks/checkAlerts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @hyperdx/api " : minor
3+ ---
4+
5+ feat: adjust alert template title and body to reflect alert state
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ interface Message {
8383 eventId : string ;
8484}
8585
86- export const isAlertResolved = ( state : AlertState ) : boolean => {
86+ export const isAlertResolved = ( state ? : AlertState ) : boolean => {
8787 return state === AlertState . OK ;
8888} ;
8989
@@ -318,7 +318,7 @@ export const buildAlertMessageTemplateTitle = ({
318318 const handlebars = createHandlebarsWithHelpers ( ) ;
319319
320320 // Add emoji prefix based on alert state
321- const emoji = state && isAlertResolved ( state ) ? '✅ ' : '🚨 ' ;
321+ const emoji = isAlertResolved ( state ) ? '✅ ' : '🚨 ' ;
322322
323323 if ( alert . source === AlertSource . SAVED_SEARCH ) {
324324 if ( savedSearch == null ) {
You can’t perform that action at this time.
0 commit comments