Update send zulip

This commit is contained in:
nguyentrungthat 2026-03-20 13:15:10 +07:00
parent c3c5914651
commit 16bdd6d586
1 changed files with 5 additions and 2 deletions

View File

@ -671,13 +671,16 @@ export class WebSocketIo {
console.error('Error sending mail:', error) console.error('Error sending mail:', error)
} }
try { try {
const contentZulip =
`\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` +
zulipMess
await sendMessageToZulip( await sendMessageToZulip(
'stream', 'stream',
streamZulip || 'ATC_Report', streamZulip || 'ATC_Report',
topicZulip, topicZulip,
`\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + contentZulip
zulipMess
) )
await sendMessageToZulip('stream', 'ATC_Report', station.name, contentZulip)
} catch (error) { } catch (error) {
console.error('Error sending zulip message:', error) console.error('Error sending zulip message:', error)
} }