Skip to content
Snippets Groups Projects
Commit 451e0041 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: delete structure

parent 928bf58b
Branches
Tags
2 merge requests!38Recette,!37Dev
...@@ -226,6 +226,7 @@ export class StructuresService { ...@@ -226,6 +226,7 @@ export class StructuresService {
if (!structure) { if (!structure) {
throw new HttpException('Invalid structure id', HttpStatus.BAD_REQUEST); throw new HttpException('Invalid structure id', HttpStatus.BAD_REQUEST);
} }
structure.structureType = null;
structure.deletedAt = DateTime.local().setZone('Europe/Paris').toString(); structure.deletedAt = DateTime.local().setZone('Europe/Paris').toString();
this.anonymizeStructure(structure).save(); this.anonymizeStructure(structure).save();
return structure; return structure;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment