kopia lustrzana https://github.com/OpenDroneMap/NodeODM
commit
ed15d324a0
|
@ -99,7 +99,7 @@ module.exports = {
|
|||
const userUuid = req.get('set-uuid');
|
||||
|
||||
// Valid UUID and no other task with same UUID?
|
||||
if (/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(userUuid) && !TaskManager.singleton().find(userUuid)){
|
||||
if (/^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(userUuid) && !TaskManager.singleton().find(userUuid)){
|
||||
req.id = userUuid;
|
||||
next();
|
||||
}else{
|
||||
|
|
Ładowanie…
Reference in New Issue