mirror of https://github.com/openclaw/openclaw.git
This commit is contained in:
parent
87d05592ea
commit
09f49cd921
|
|
@ -129,7 +129,8 @@ function validateTelegramDeliveryTarget(to: string | undefined): string | undefi
|
|||
}
|
||||
|
||||
function assertDeliverySupport(job: Pick<CronJob, "sessionTarget" | "delivery">) {
|
||||
if (!job.delivery) {
|
||||
// No delivery object or mode is "none" -- nothing to validate.
|
||||
if (!job.delivery || job.delivery.mode === "none") {
|
||||
return;
|
||||
}
|
||||
if (job.delivery.mode === "webhook") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue