fixe form builder
This commit is contained in:
parent
c19e4c684e
commit
0dbc04f09b
28 changed files with 99 additions and 80 deletions
|
@ -14,6 +14,7 @@ export enum FolderStructure {
|
|||
datasets = "datasets",
|
||||
behaviorTrees = "behavior_trees",
|
||||
robots = "robots",
|
||||
scenes = "scenes",
|
||||
}
|
||||
|
||||
export class UploadCadFileToProjectScenario extends CallbackStrategyWithFileUpload {
|
||||
|
|
|
@ -9,7 +9,17 @@ import { ExecProcessUseCase } from "../../../core/usecases/exec_process_usecase"
|
|||
|
||||
export class CreateRobotScenario extends CallbackStrategyWithValidationModel<RobotModel> {
|
||||
validationModel: RobotModel = new RobotModel();
|
||||
call = async (model: RobotModel): ResponseBase => {
|
||||
return Result.ok([]);
|
||||
};
|
||||
call = async (model: RobotModel): ResponseBase => (
|
||||
await new SearchManyDataBaseModelUseCase<IProjectModel>(ProjectDBModel).call(
|
||||
{ isActive: true },
|
||||
"is dont active projects"
|
||||
)
|
||||
).map(async (projectModel) => {
|
||||
const { rootDir } = projectModel[0];
|
||||
rootDir + '/robots/'
|
||||
|
||||
return Result.ok([])
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue