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[]> { public async get(q: IGetFoldersParams): Promise<OfficeFolder[]> {
const url = new URL(this.baseURl); const url = new URL(this.baseURl);
Object.entries(q).forEach(([key, value]) => url.searchParams.set(key, JSON.stringify(value))); 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 { try {
return await this.getRequest<OfficeFolder[]>(url); return await this.getRequest<OfficeFolder[]>(url);
} catch (err) { } catch (err) {

View File

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