refactor: use job terminology for consistency

This commit is contained in:
Derrick Hammer 2024-02-25 07:52:28 -05:00
parent 8885fd37cc
commit 5b210de198
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ func (t *TusHandler) ScheduleUpload(ctx context.Context, uploadID string) error
return errors.New("upload not found")
}
task := t.cron.RetryableJob(cron.RetryableJobParams{
job := t.cron.RetryableJob(cron.RetryableJobParams{
Name: "tusUpload",
Function: t.uploadTask,
Args: []interface{}{upload.Hash},
@ -266,7 +266,7 @@ func (t *TusHandler) ScheduleUpload(ctx context.Context, uploadID string) error
},
})
_, err := t.cron.CreateJob(task)
_, err := t.cron.CreateJob(job)
if err != nil {
return err