mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-08 03:15:54 -05:00
[NNID] /v1/api/miis - Filter invalid PIDs
This commit is contained in:
@@ -30,7 +30,7 @@ router.get('/', async (request: express.Request, response: express.Response): Pr
|
||||
return;
|
||||
}
|
||||
|
||||
const pids: number[] = input.split(',').map(pid => Number(pid));
|
||||
const pids: number[] = input.split(',').map(pid => Number(pid)).filter(pid => !isNaN(pid));
|
||||
|
||||
const results: HydratedPNIDDocument[] = await PNID.where('pid', pids);
|
||||
const miis: {
|
||||
|
||||
Reference in New Issue
Block a user