Skip to content

Commit

Permalink
Fixed the table name in the consturctor and errors processing in the …
Browse files Browse the repository at this point in the history
…module.
  • Loading branch information
ruslanbaidan committed Aug 22, 2024
1 parent 819f62a commit 8c5159a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getJsonModelError($e)
$errorJson['message'] = 'Resource not found.';
}

if ($exception->getCode() === 400) {
if ($exception && $exception->getCode() === 400) {
$model = new JsonModel([
'errors' => [json_decode($exception->getMessage(), true, 512, JSON_THROW_ON_ERROR)],
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Export/Service/AnrExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
private Table\DeliveryTable $deliveryTable,
private Table\SoaTable $soaTable,
private DeprecatedTable\QuestionTable $questionTable,
private DeprecatedTable\interviewTable $interviewTable,
private DeprecatedTable\InterviewTable $interviewTable,
private DeprecatedTable\RecordTable $recordTable,
private AnrRecordService $anrRecordService,
private ConfigService $configService
Expand Down

0 comments on commit 8c5159a

Please sign in to comment.