mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-29 13:47:57 -05:00
only check if PID linked if PID is sent
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user