Compare commits
2 Commits
1e7ac2521c
...
eb45cb3fb8
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eb45cb3fb8 | ||
![]() |
98f3ff5dab |
@ -260,7 +260,7 @@ export default class IdNotService extends BaseService {
|
||||
console.log("Fetching rattachements for user", user.uid);
|
||||
console.log(searchParams.toString());
|
||||
try {
|
||||
rattachements = await fetch(`${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/personnes/${user.idNot}/rattachements?deleted=false` + searchParams, {
|
||||
rattachements = await fetch(`${this.variables.IDNOT_API_BASE_URL}/api/pp/v2/personnes/${user.idNot}/rattachements?` + searchParams, {
|
||||
method: "GET",
|
||||
});
|
||||
} catch (error) {
|
||||
@ -282,6 +282,7 @@ export default class IdNotService extends BaseService {
|
||||
return;
|
||||
}
|
||||
const rattachementsResults = rattachements.result as IRattachementData[];
|
||||
console.log("rattachementsResults", JSON.stringify(rattachementsResults));
|
||||
if (!rattachementsResults) return;
|
||||
rattachementsResults.forEach(async (rattachement) => {
|
||||
if (rattachement.statutDuRattachement && !rattachement.deleted) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user