Validate deviceId header
This commit is contained in:
parent
4fa886d8c6
commit
401e46e475
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ module.exports = async (
|
|||
return next()
|
||||
}
|
||||
|
||||
if (!deviceId) {
|
||||
if (typeof deviceId !== 'string' || !deviceId) {
|
||||
const error = {
|
||||
field: 'deviceId',
|
||||
message: 'Please specify a device ID'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue