Skip to content

Commit

Permalink
Code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Oct 8, 2024
1 parent bcd9a5b commit b1b4aae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Service/ZaakService.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,17 +505,20 @@ public function zaakHandler(?array $data = [], ?array $configuration = [])
}

if (isset($data['caseId']) === true) {
$this->getZaak($configuration, $data['caseId']);

return $data;
$zaak = $this->getZaak($configuration, $data['caseId']);
}

if (isset($data['body']['case_uuid']) === true) {
$zaak = $this->getZaak($configuration, $data['body']['case_uuid']);
}

// Check if we already synced the zaak.
if (isset($zaak) === true) {
// Check if we need to update the taak with the zaak url.
if (isset($data['taakId']) === true) {
$this->updateTaak($zaak, $data['taakId']);
}

return $data;
}

Expand Down

0 comments on commit b1b4aae

Please sign in to comment.