Compare commits

...

2 Commits

Author SHA1 Message Date
Omar Oughriss
6bd76420b2 Add url logs
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-image-lecoffre (push) Successful in 16s
Demo - Build & Deploy to Scaleway / deploy-to-scaleway-lecoffre (push) Successful in 3s
2025-07-28 10:58:41 +02:00
Omar Oughriss
3cb0b16c16 Comment out for debbuging 2025-07-28 10:58:29 +02:00
2 changed files with 15 additions and 6 deletions

View File

@ -34,6 +34,13 @@ export default class Folders extends BaseNotary {
public async get(q: IGetFoldersParams): Promise<OfficeFolder[]> {
const url = new URL(this.baseURl);
Object.entries(q).forEach(([key, value]) => url.searchParams.set(key, JSON.stringify(value)));
console.log('URL complète :', url.toString());
console.log('Paramètres de recherche :', {
baseURL: this.baseURl,
queryParams: Object.fromEntries(url.searchParams.entries())
});
try {
return await this.getRequest<OfficeFolder[]>(url);
} catch (err) {

View File

@ -31,12 +31,14 @@ export default function Folder() {
},
})
.then((folders) => {
if (folders.length > 0)
router.push(
Module.getInstance()
.get()
.modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
);
if (folders.length > 0) {
console.log("Liste des dossiers:", JSON.stringify(folders));
// router.push(
// Module.getInstance()
// .get()
// .modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
// );
}
});
}, [router]);
return (