Validate deviceId header

This commit is contained in:
Daniel Lugo 2022-01-17 14:32:18 -04:00
parent 4fa886d8c6
commit 401e46e475

View file

@ -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'