This commit is contained in:
nguyentrungthat 2026-03-11 07:45:42 +07:00
parent c032a29cdd
commit c18b8aeff2
2 changed files with 14 additions and 13 deletions

View File

@ -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()

View File

@ -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)
}