diff --git a/fs/rc/jobs/job.go b/fs/rc/jobs/job.go index 1a7976c27..69acaa479 100644 --- a/fs/rc/jobs/job.go +++ b/fs/rc/jobs/job.go @@ -425,8 +425,8 @@ Results: - executeId - string id of rclone executing (change after restart) - jobids - array of integer job ids (starting at 1 on each restart) -- running_ids - array of integer job ids that are running -- finished_ids - array of integer job ids that are finished +- runningIds - array of integer job ids that are running +- finishedIds - array of integer job ids that are finished `, }) } @@ -436,8 +436,8 @@ func rcJobList(ctx context.Context, in rc.Params) (out rc.Params, err error) { out = make(rc.Params) out["jobids"] = running.IDs() runningIDs, finishedIDs := running.Stats() - out["running_ids"] = runningIDs - out["finished_ids"] = finishedIDs + out["runningIds"] = runningIDs + out["finishedIds"] = finishedIDs out["executeId"] = executeID return out, nil } diff --git a/fs/rc/jobs/job_test.go b/fs/rc/jobs/job_test.go index 616ad0ef2..dc54b0281 100644 --- a/fs/rc/jobs/job_test.go +++ b/fs/rc/jobs/job_test.go @@ -378,8 +378,8 @@ func TestRcJobList(t *testing.T) { require.NoError(t, err) require.NotNil(t, out1) assert.Equal(t, []int64{1}, out1["jobids"], "should have job listed") - assert.Equal(t, []int64{1}, out1["running_ids"], "should have running job") - assert.Equal(t, []int64{}, out1["finished_ids"], "should not have finished job") + assert.Equal(t, []int64{1}, out1["runningIds"], "should have running job") + assert.Equal(t, []int64{}, out1["finishedIds"], "should not have finished job") _, _, err = NewJob(ctx, longFn, rc.Params{"_async": true}) assert.NoError(t, err)