Skip to content

Commit 47b10a9

Browse files
authored
Merge pull request #7 from level23/fix-wrong-error-method
Fix wrong method call
2 parents f2946cd + ef9a4f1 commit 47b10a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue/Jobs/BatchJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function deleteJobs(Collection $jobs)
8787

8888
foreach (collect($response->get('Failed')) as $message) {
8989
$job = $jobs->get($message['Id']);
90-
$job->error(array_except($message,'Id'));
90+
$job->setError(array_except($message,'Id'));
9191
$failedJobs->put($message['Id'],$job);
9292
}
9393
}

0 commit comments

Comments
 (0)