Skip to content

Commit

Permalink
[BF] PeeringDB interface has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 8, 2024
1 parent 41d2d2f commit 1aaa633
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 1aaa633

Please sign in to comment.