mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:34:33 +00:00
Cron: route reminders by session namespace
This commit is contained in:
committed by
Peter Steinberger
parent
f452a7a60b
commit
f988abf202
@@ -58,6 +58,7 @@ describe("cron store migration", () => {
|
||||
const legacyJob = {
|
||||
id: "job-1",
|
||||
agentId: undefined,
|
||||
sessionKey: " agent:main:discord:channel:ops ",
|
||||
name: "Legacy job",
|
||||
description: null,
|
||||
enabled: true,
|
||||
@@ -82,6 +83,7 @@ describe("cron store migration", () => {
|
||||
await fs.writeFile(store.storePath, JSON.stringify({ version: 1, jobs: [legacyJob] }, null, 2));
|
||||
|
||||
const migrated = await migrateAndLoadFirstJob(store.storePath);
|
||||
expect(migrated.sessionKey).toBe("agent:main:discord:channel:ops");
|
||||
expect(migrated.delivery).toEqual({
|
||||
mode: "announce",
|
||||
channel: "telegram",
|
||||
|
||||
Reference in New Issue
Block a user