fix: reject future machines as well
This commit is contained in:
parent
1830f90c2c
commit
892f46f64c
1 changed files with 7 additions and 0 deletions
|
|
@ -18,6 +18,13 @@ const rejectIncompatibleMachines = function (req, res, next) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (serverMajor < machineMajor) {
|
||||||
|
logger.error(`Machine version too new: ${machineVersion} deviceId: ${deviceId}`)
|
||||||
|
return res.status(400).json({
|
||||||
|
error: 'Machine version too new'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue