mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-06 20:02:49 +08:00
fix(cron): use job.id instead of job.name for API calls (#58)
感谢 @axdlee 的贡献!这个修复很精准,job ID 和 name 的混淆确实会导致自定义名称的定时任务无法触发。已合并 🎉
This commit is contained in:
@@ -121,7 +121,7 @@ async function fetchJobs(page, state) {
|
||||
if (!Array.isArray(jobs)) jobs = []
|
||||
|
||||
state.jobs = jobs.map(j => ({
|
||||
id: j.name || j.id,
|
||||
id: j.id,
|
||||
name: j.name || j.id || '未命名',
|
||||
description: j.description || '',
|
||||
message: j.payload?.message || j.payload?.text || '',
|
||||
|
||||
Reference in New Issue
Block a user