fix tests
This commit is contained in:
@@ -72,7 +72,7 @@ class FamilyAdminController extends BaseApiController
|
||||
$schoolYear
|
||||
);
|
||||
|
||||
if (!$family) {
|
||||
if (! $family) {
|
||||
return $this->error('Family not found.', Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
@@ -92,8 +92,9 @@ class FamilyAdminController extends BaseApiController
|
||||
$payload['reply_to_name'] ?? null
|
||||
);
|
||||
|
||||
if (!$ok) {
|
||||
if (! $ok) {
|
||||
Log::warning('Compose email failed for family admin', ['recipient' => $payload['recipient']]);
|
||||
|
||||
return $this->error('Unable to send email.', Response::HTTP_INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user