update stream zulip
This commit is contained in:
parent
211f85130d
commit
c3c5914651
|
|
@ -645,6 +645,13 @@ export class WebSocketIo {
|
|||
const timeZone = process.env.TIME_ZONE || 'Australia/Sydney'
|
||||
const dataFormat = momentTZ().tz(timeZone).format('YYYY/MM/DD, HH:mm:ss')
|
||||
|
||||
const streamZulip = station.name.toUpperCase().includes('US')
|
||||
? process.env.ZULIP_STREAM_US
|
||||
: process.env.ZULIP_STREAM_AU
|
||||
const topicZulip = station.name.toUpperCase().includes('US')
|
||||
? ''
|
||||
: process.env.ZULIP_TOPIC_AU
|
||||
|
||||
const linkWiki =
|
||||
process.env.LINK_WIKI || 'https://logs.danielvu.com/api/wiki/page/insert?title=Dev_test'
|
||||
try {
|
||||
|
|
@ -666,8 +673,8 @@ export class WebSocketIo {
|
|||
try {
|
||||
await sendMessageToZulip(
|
||||
'stream',
|
||||
'ATC_Report',
|
||||
station.name,
|
||||
streamZulip || 'ATC_Report',
|
||||
topicZulip,
|
||||
`\n\n---\n**[${scenarioName || 'DPELP'}] - ${stationName} - ${dataFormat}**\n\n` +
|
||||
zulipMess
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue