Skip to content

Commit 7b4d0f7

Browse files
authored
Update DatabaseUuidFailedJobProvider.php (#34251)
1 parent a4c365f commit 7b4d0f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ public function all()
8989
*/
9090
public function find($id)
9191
{
92-
return $this->getTable()->where('uuid', $id)->first();
92+
if ($record = $this->getTable()->where('uuid', $id)->first()) {
93+
$record->id = $record->uuid;
94+
unset($record->uuid);
95+
}
96+
97+
return $record;
9398
}
9499

95100
/**

0 commit comments

Comments
 (0)