diff --git a/BACKEND/app/services/line_connection.ts b/BACKEND/app/services/line_connection.ts index 4bd9cdc..4b90aff 100644 --- a/BACKEND/app/services/line_connection.ts +++ b/BACKEND/app/services/line_connection.ts @@ -1917,19 +1917,20 @@ ${log} this.physicalTest = new PhysicalPortTest([]) } - setTimeoutSendSummaryReport(timeout: number, reason?: string) { + setTimeoutSendSummaryReport(timeout: number) { // Debounce send summary report if (this.debounceSendSummaryReport) clearTimeout(this.debounceSendSummaryReport) // Snapshot toàn bộ data tại thời điểm này const snapshot = { snapConfig: this.config, snapPhysical: this.physicalTest, - reason: reason || '', + reason: '', } this.debounceSendSummaryReport = setTimeout(() => { if (!this.config.listFeatureTested?.includes('PHYSICAL')) { this.config.isSkipPhysical = true this.config.reasonSkipPhysical = '' + snapshot.reason = 'The user has not completed the physical test' } this.config.listFeatureTested = ['DPELP', 'PHYSICAL', 'SUMMARY'] this.sendFeatureTested() diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts index 2845c80..2553895 100644 --- a/BACKEND/providers/socket_io_provider.ts +++ b/BACKEND/providers/socket_io_provider.ts @@ -656,21 +656,21 @@ export class WebSocketIo { console.error('Error sending wiki message:', error) } try { - await sendMessageToMail( - `[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}`, - tableHTML - ) + // await sendMessageToMail( + // `[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}`, + // tableHTML + // ) } catch (error) { console.error('Error sending mail:', error) } try { - // await sendMessageToZulip( - // 'stream', - // 'ATC_Report', - // station.name, - // `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + - // zulipMess - // ) + await sendMessageToZulip( + 'stream', + 'ATC_Report', + station.name, + `\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` + + zulipMess + ) } catch (error) { console.error('Error sending zulip message:', error) }