diff --git a/src/router/pb.ts b/src/router/pb.ts old mode 100755 new mode 100644 index 9ecc181..d0867c8 --- a/src/router/pb.ts +++ b/src/router/pb.ts @@ -8,10 +8,18 @@ export default async function pb(id: string): Promise { body }); const data = await response.json(); - return { - success: true, - game: 'Point Blank', - id, - name: data.confirmationFields.username - }; + if (data.confirmationFields.username) { + return { + success: true, + game: 'Point Blank', + id, + name: data.confirmationFields.username + }; + } + else { + return { + success: false, + message: 'Not found' + } + } } \ No newline at end of file