Fix published error when no telegram config
This commit is contained in:
@@ -193,7 +193,9 @@ module.exports = {
|
||||
})
|
||||
}
|
||||
|
||||
await axios.post(`${MESSAGE_URL}&text=${message}`)
|
||||
if (TELEGRAM_API_TOKEN) {
|
||||
await axios.post(`${MESSAGE_URL}&text=${message}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user