From c3f51051fad5df0d1a1bb58e537cd3a5239eff6b Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Wed, 6 May 2026 13:59:26 +0700 Subject: [PATCH] Update --- BACKEND/app/ultils/helper.ts | 14 ++++++------- BACKEND/providers/socket_io_provider.ts | 28 ++++++++++++------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/BACKEND/app/ultils/helper.ts b/BACKEND/app/ultils/helper.ts index 69ec51c..5e6b440 100644 --- a/BACKEND/app/ultils/helper.ts +++ b/BACKEND/app/ultils/helper.ts @@ -11,13 +11,13 @@ import ConfigRam from '#models/config_ram' import Keyword from '#models/keywords' const mailTo = 'andrew.ng@apactech.io' -// const mailCC = [ -// 'ips@ipsupply.com.au', -// 'kay@ipsupply.com.au', -// 'joseph@apactech.io', -// 'kiet.phan@apactech.io', -// ] -const mailCC = '' +const mailCC = [ + 'ips@ipsupply.com.au', + 'kay@ipsupply.com.au', + 'joseph@apactech.io', + 'kiet.phan@apactech.io', +] +// const mailCC = '' type DetectAI = { status: string[] diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index 8a8db14..11ebbd5 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -668,10 +668,10 @@ export class WebSocketIo { const linkWiki = process.env.LINK_WIKI || 'https://logs.danielvu.com/api/wiki/page/insert?title=Dev_test' try { - // await axios.post(linkWiki, { - // data: tableHTML, - // titleAuto: `[${scenarioName || 'DPELP'}] - ${stationName} - ` + dataFormat, - // }) + await axios.post(linkWiki, { + data: tableHTML, + titleAuto: `[${scenarioName || 'DPELP'}] - ${stationName} - ` + dataFormat, + }) } catch (error) { console.error('Error sending wiki message:', error) } @@ -684,16 +684,16 @@ export class WebSocketIo { console.error('Error sending mail:', error) } try { - // const contentZulip = - // `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + - // zulipMess - // await sendMessageToZulip( - // 'stream', - // streamZulip || 'ATC_Report', - // topicZulip, - // contentZulip - // ) - // await sendMessageToZulip('stream', 'ATC_Report', station.name, contentZulip) + const contentZulip = + `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + + zulipMess + await sendMessageToZulip( + 'stream', + streamZulip || 'ATC_Report', + topicZulip, + contentZulip + ) + await sendMessageToZulip('stream', 'ATC_Report', station.name, contentZulip) } catch (error) { console.error('Error sending zulip message:', error) }