fixe form builder

This commit is contained in:
IDONTSUDO 2024-10-05 14:16:28 +03:00
parent c19e4c684e
commit 0dbc04f09b
28 changed files with 99 additions and 80 deletions

View file

@ -14,6 +14,7 @@ export enum FolderStructure {
datasets = "datasets",
behaviorTrees = "behavior_trees",
robots = "robots",
scenes = "scenes",
}
export class UploadCadFileToProjectScenario extends CallbackStrategyWithFileUpload {

View file

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