From 7c7b414cb4e22f83b4f6bab80511f47215dbb473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 28 Apr 2024 21:59:46 +0200 Subject: [PATCH] fix: use consumtion type --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 63acd34..7740960 100644 --- a/src/index.ts +++ b/src/index.ts @@ -107,7 +107,7 @@ export class GRDF { * @return {Promise} */ public async getPCEConsumption (type: ConsommationType, pceList: string[], dateDebut: string, dateFin: string): Promise { - return await this.request(`/e-conso/pce/consommation/informatives?${qs.stringify({ + return await this.request(`/e-conso/pce/consommation/${type}?${qs.stringify({ dateDebut, dateFin, pceList