Skip to content

Commit

Permalink
Fix sync file and zaaktype
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Nov 11, 2024
1 parent 579eadf commit acb9c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Service/ZaakService.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private function getInhoudDocument(string $documentId, Source $xxllncV2): ?strin
isset($this->style) === true && $this->style->info("Fetching inhoud document: $documentId..");
$this->pluginLogger->info("Fetching inhoud document: $documentId..", ['plugin' => XxllncZGWBundle::PLUGIN_NAME]);
$response = $this->callService->call($xxllncV2, "/document/download_document?id=$documentId", 'GET');
return $this->callService->decodeResponse($xxllncV2, $response, 'application/pdf')['base64'];
return $this->callService->decodeResponse($xxllncV2, $response, 'application/pdf');
} catch (Exception $e) {
isset($this->style) === true && $this->style->error("Failed to fetch inhoud of document: $documentId, message: {$e->getMessage()}");
$this->pluginLogger->error("Failed to fetch inhoud of document: $documentId, message: {$e->getMessage()}", ['plugin' => XxllncZGWBundle::PLUGIN_NAME]);
Expand Down
4 changes: 2 additions & 2 deletions src/Service/ZaakTypeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function getZaakType(string $caseTypeID, ?Source $xxllncAPI = null)
// Else create a normal ZGW ZaakType.
$caseType = $caseType['result'];
$caseType['url'] = $xxllncAPI->getLocation().'/casetype/'.$caseType['reference'];
return $this->syncCaseType($caseType);
return $this->syncCaseType(caseType: $caseType, flush: true, xxllncAPI: $xxllncAPI);

}//end getZaakType()

Expand Down Expand Up @@ -277,7 +277,7 @@ public function syncCaseType(array $caseType, bool $flush = true, ?Source $xxlln

if ($xxllncAPI === null) {
$xxllncAPI = $this->resourceService->getSource(
($this->confgiuration['source'] ?? 'https://development.zaaksysteem.nl/source/xxllnc.zaaksysteem.source.json'),
($this->configuration['source'] ?? 'https://development.zaaksysteem.nl/source/xxllnc.zaaksysteem.source.json'),
'common-gateway/xxllnc-zgw-bundle'
);
}
Expand Down

0 comments on commit acb9c54

Please sign in to comment.