ArmBot,staticmachine poits schema creation

This commit is contained in:
2025-04-08 17:17:36 +05:30
parent e7216d9116
commit c4d8fc14c8
3 changed files with 134 additions and 7 deletions

View File

@@ -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;
});