Merge pull request #52 from builderz-labs/fix/cron-trigger-params

fix: cron job manual trigger sending wrong params
This commit is contained in:
nyk 2026-03-02 02:48:09 +07:00 committed by GitHub
commit e77ec4cf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,8 @@ export function CronManagementPanel() {
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ body: JSON.stringify({
action: 'trigger', action: 'trigger',
command: job.command jobId: job.id,
jobName: job.name,
}) })
}) })

View File

@ -31,6 +31,7 @@ export interface LogEntry {
} }
export interface CronJob { export interface CronJob {
id?: string
name: string name: string
schedule: string schedule: string
command: string command: string