Skip to content

Commit

Permalink
Stop logging donor object in it's entirety and just log the uId.
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj committed Nov 29, 2024
1 parent d7fe909 commit eea3261
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private function existentCodeNotActivated(
throw new BadRequestException(
'Activation key already requested for LPA',
[
'donor' => $lpaAddedData['donor'],
'donor' => [
'uId' => $lpaAddedData['donor']['uId'],
],
'caseSubtype' => $lpaAddedData['caseSubtype'],
'activationKeyDueDate' => $activationKeyDueDate,
],
Expand Down Expand Up @@ -126,7 +128,9 @@ private function processActivationCode(
throw new BadRequestException(
'LPA has an activation key already',
[
'donor' => $validationData->lpa->getDonor(),
'donor' => [
'uId' => $validationData->lpa->getDonor()->getUid(),
],
'caseSubtype' => $validationData->getCaseSubtype(),
'activationKeyDueDate' => $activationKeyDueDate,
]
Expand Down Expand Up @@ -186,7 +190,16 @@ public function validateRequest(string $userId, array $matchData): AccessForAllV
'uId' => (string) $matchData['reference_number'],
]
);
throw new BadRequestException('LPA already added', $lpaAddedData);
throw new BadRequestException(
'LPA already added',
[
'donor' => [
'uId' => $lpaAddedData['donor']['uId'],
],
'caseSubtype' => $lpaAddedData['caseSubtype'],
'lpaActorToken' => $lpaAddedData['lpaActorToken'],
],
);
}

$lpa = $this->fetchLPAData($matchData['reference_number']);
Expand Down

0 comments on commit eea3261

Please sign in to comment.