ArmBot,staticmachine poits schema creation
This commit is contained in:
@@ -74,7 +74,12 @@ export class assetsFloorservice {
|
||||
message: "triggers is not allowed for Vehicle points",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
// else if(eventData.type === "ArmBot"){
|
||||
// assetData.speed = eventData.position;
|
||||
// }else if(eventData.type === "StaticMachine"){
|
||||
// assetData.speed = eventData.position;
|
||||
// }
|
||||
|
||||
assetData.points = eventData.points;
|
||||
assetData.type = eventData.type;
|
||||
@@ -131,7 +136,18 @@ export class assetsFloorservice {
|
||||
points: item.points,
|
||||
};
|
||||
}
|
||||
|
||||
if (item.type === "ArmBot" && item.points) {
|
||||
responseItem.eventData = {
|
||||
type: item.type,
|
||||
points: item.points,
|
||||
};
|
||||
}
|
||||
if (item.type === "StaticMachine" && item.points) {
|
||||
responseItem.eventData = {
|
||||
type: item.type,
|
||||
points: item.points,
|
||||
};
|
||||
}
|
||||
return responseItem;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user