diff --git a/angular.json b/angular.json index 432e248a537d676d6ff0607603719794c3a8acda..49accd1a4b36c3ffe523135fd21b5bacfa6b954e 100644 --- a/angular.json +++ b/angular.json @@ -193,5 +193,8 @@ } } } + }, + "cli": { + "analytics": false } } diff --git a/src/app/models/structure.model.ts b/src/app/models/structure.model.ts index 8841a553a56777a2a35b326d6421bb678f40cbc8..e410b00deb8323ff3ce17bf394099028c9c0cb93 100644 --- a/src/app/models/structure.model.ts +++ b/src/app/models/structure.model.ts @@ -66,6 +66,7 @@ export class Structure { public alreadySelected? = false; public isClaimed?: boolean = null; + public idCNFS?: string; constructor(obj?: any) { Object.assign(this, obj, { diff --git a/src/app/services/structure.service.ts b/src/app/services/structure.service.ts index 698064f0d7386eb0e246166f80d51ac387ac0649..392599cf600b4c65a039d305d81c8abba0e0d8cf 100644 --- a/src/app/services/structure.service.ts +++ b/src/app/services/structure.service.ts @@ -27,8 +27,10 @@ export class StructureService { .pipe(map((item: Structure) => new Structure(item))); } public createStructure(structure: Structure, profile: User): Observable<Structure> { - const idUser = profile.email; - return this.http.post(`${this.baseUrl}`, { structure, idUser }).pipe(map((item: Structure) => new Structure(item))); + const userEmail = profile.email; + return this.http + .post(`${this.baseUrl}`, { structure, userEmail }) + .pipe(map((item: Structure) => new Structure(item))); } public editStructure(structure: Partial<Structure>, structureId?: string): Observable<Structure> {