Skip to content

Commit

Permalink
Merge remote-tracking branch 'inex/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 11, 2024
2 parents 024c8be + 1aaa633 commit 37cd32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/V4/CustomerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public function queryPeeringDbWithAsn( string $asn ): JsonResponse
{
$pdb = App::make( PeeringDb::class );

if( $pdb->getNetworkByAsn( $asn ) ) {
return response()->json( [ 'net' => $pdb->net ] );
if( $response = $pdb->getNetworkByAsn( $asn ) ) {
return response()->json( [ 'net' => $response ] );
}

return response()->json( [ 'error' => $pdb->error ] );
Expand Down

0 comments on commit 37cd32e

Please sign in to comment.