Skip to content

Commit

Permalink
fix: failing test for undecodable payload
Browse files Browse the repository at this point in the history
  • Loading branch information
jryd committed Apr 2, 2024
1 parent b4bb38a commit 85ebd0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Recorders/JobRecorder/JobRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ protected function getJobProperties(): array
}
}

if (is_string($payload['data'])) {
try {
try {
if (is_string($payload['data'])) {
$properties['data'] = json_decode($payload['data'], true, 512, JSON_THROW_ON_ERROR);
} catch (Exception $exception) {
}
} catch (Exception $exception) {
}

if ($pushedAt = DateTime::createFromFormat('U.u', $payload->get('pushedAt', ''))) {
Expand Down

0 comments on commit 85ebd0b

Please sign in to comment.