Add url logs
This commit is contained in:
parent
3cb0b16c16
commit
6bd76420b2
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user