Office activated by default
This commit is contained in:
parent
613fba23b8
commit
55d953c14f
@ -47,6 +47,7 @@ export default class UsersRepository extends BaseRepository {
|
||||
city: user.office_membership!.address!.city,
|
||||
},
|
||||
},
|
||||
office_status: "ACTIVATED",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -129,7 +129,7 @@ export default class IdNotService extends BaseService {
|
||||
const decodedIdToken = jwt.decode(decodedToken.id_token) as IdNotJwtPayload;
|
||||
return decodedIdToken;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.error("Error fetching " + this.variables.IDNOT_BASE_URL + this.variables.IDNOT_CONNEXION_URL ,error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -384,7 +384,7 @@ export default class IdNotService extends BaseService {
|
||||
).json()) as IRattachementData;
|
||||
console.log("userData", userData);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.error("Error fetching " + `${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/rattachements/${decodedToken.profile_idn}?`, error);
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -400,7 +400,7 @@ export default class IdNotService extends BaseService {
|
||||
await fetch(`${this.variables.IDNOT_API_BASE_URL + userData.entite.locationsUrl}?` + searchParams, { method: "GET" })
|
||||
).json()) as IOfficeLocation;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.error("Error fetching" + `${this.variables.IDNOT_API_BASE_URL + userData.entite.locationsUrl}` , error);
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -428,6 +428,7 @@ export default class IdNotService extends BaseService {
|
||||
},
|
||||
created_at: null,
|
||||
updated_at: null,
|
||||
status: "ACTIVE",
|
||||
},
|
||||
role: role,
|
||||
contact: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user