mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:30:43 +00:00
fix(cron): require explicit recipient for mode none
This commit is contained in:
@@ -142,11 +142,7 @@ async function resolveCronDeliveryContext(params: {
|
||||
deliveryContract: IsolatedDeliveryContract;
|
||||
}) {
|
||||
const deliveryPlan = resolveCronDeliveryPlan(params.job);
|
||||
const hasMessageTargetContext =
|
||||
deliveryPlan.mode !== "webhook" &&
|
||||
(deliveryPlan.to !== undefined ||
|
||||
deliveryPlan.threadId !== undefined ||
|
||||
deliveryPlan.accountId !== undefined);
|
||||
const hasMessageTargetContext = deliveryPlan.mode !== "webhook" && deliveryPlan.to !== undefined;
|
||||
if (!deliveryPlan.requested && !hasMessageTargetContext) {
|
||||
const resolvedDelivery = {
|
||||
ok: false as const,
|
||||
|
||||
Reference in New Issue
Block a user