mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-07-19 09:22:05 -05:00
only check if PID linked if PID is sent
This commit is contained in:
parent
0f5a0f1a42
commit
ea2f6b2596
|
|
@ -96,11 +96,12 @@ async function NASCMiddleware(request, response, next) {
|
|||
return util.nascError(response, '102');
|
||||
}
|
||||
|
||||
const linkedPIDs = device.get('linked_pids');
|
||||
if (pid) {
|
||||
const linkedPIDs = device.get('linked_pids');
|
||||
|
||||
if (!linkedPIDs.includes(pid)) {
|
||||
console.log('no linked')
|
||||
return util.nascError(response, '102');
|
||||
if (!linkedPIDs.includes(pid)) {
|
||||
return util.nascError(response, '102');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user