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

fix(aptic): structure categories creation order

parent 973fc26b
No related branches found
No related tags found
3 merge requests!247V2.1.0,!242V2.0,!127V2.0
......@@ -77,11 +77,9 @@ export class ApticStructuresService {
createdStructure.contactPhone = structure.phone;
// Unkown fields (but mandatory)
createdStructure.contactMail = 'unknown@unknown.com';
createdStructure.categories.labelsQualifications = ['passNumerique'];
createdStructure.structureType = await this.structureTypeService.findByValue('autre');
createdStructure.pmrAccess = false;
createdStructure.remoteAccompaniment = false;
createdStructure.categories.accessModality = ['accesLibre'];
createdStructure.accountVerified = true;
createdStructure.freeWorkShop = false;
createdStructure.nbComputers = 0;
......@@ -103,6 +101,8 @@ export class ApticStructuresService {
createdStructure.categories.languageAndIlliteracy = await this.setModules(structure, 'languageAndIlliteracy');
createdStructure.categories.handicaps = await this.setModules(structure, 'handicaps');
createdStructure.categories.publicOthers = ['toutPublic'];
createdStructure.categories.labelsQualifications = ['passNumerique'];
createdStructure.categories.accessModality = ['accesLibre'];
createdStructure.save();
this.structuresSearchService.indexStructure(createdStructure);
// Send admin weird structure mail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment