File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11/**
22 * Local version
33 */
4+
45import * as zmq from "zeromq" ;
56import axios from "axios" ;
67import { ProcessedError } from "../controllers/errorController" ;
@@ -62,7 +63,7 @@ function computeOverallSeverity(errors: ErrorObject[]): string {
6263
6364async function sendToWebhook (
6465 channelId : string ,
65- payload : WebhookPayload // Updated to use the interface
66+ payload : WebhookPayload
6667) : Promise < boolean > {
6768 try {
6869 const response = await axios . post ( `${ webhookUrl } /${ channelId } ` , payload , {
@@ -248,7 +249,7 @@ Provide analysis including:
248249 . replace ( / R o o t C a u s e / gi, "🔍 Root Cause" )
249250 . replace ( / S u g g e s t e d F i x / gi, "🔧 Suggested Fix" )
250251 . replace ( / P r e v e n t i o n T i p s / gi, "🛡️ Prevention Tips" )
251- . replace ( / G e n e r a l N o t e s / gi, "📋 General Notes" ) // Added general notes emoji
252+ . replace ( / G e n e r a l N o t e s / gi, "📋 General Notes" )
252253 . replace ( / H i g h s e v e r i t y / gi, "High severity 🚨" )
253254 . replace ( / M e d i u m s e v e r i t y / gi, "Medium severity ⚠️" )
254255 . replace ( / L o w s e v e r i t y / gi, "Low severity ℹ️" )
You can’t perform that action at this time.
0 commit comments