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 fbb3484 commit 7a4e41c
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 7a4e41c

Please sign in to comment.