diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index dc8331b..ec6d0b8 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -623,23 +623,35 @@ export class WebSocketIo { const linkWiki = process.env.LINK_WIKI || 'https://logs.danielvu.com/api/wiki/page/insert?title=Dev_test' - await axios.post(linkWiki, { - data: tableHTML, - titleAuto: `[${scenarioName || 'DPELP'}] - ${stationName} - ` + dataFormat, - }) - await sendMessageToMail( - `[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}`, - tableHTML - ) - await sendMessageToZulip( - 'stream', - 'ATC_Report', - station.name, - `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + - zulipMess - ) + try { + await axios.post(linkWiki, { + data: tableHTML, + titleAuto: `[${scenarioName || 'DPELP'}] - ${stationName} - ` + dataFormat, + }) + } catch (error) { + console.error(error) + } + try { + await sendMessageToMail( + `[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}`, + tableHTML + ) + } catch (error) { + console.error(error) + } + try { + await sendMessageToZulip( + 'stream', + 'ATC_Report', + station.name, + `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + + zulipMess + ) + } catch (error) { + console.error(error) + } } catch (error) { - console.log(error) + console.error(error) } })