Skip to content

Commit

Permalink
fix: use consumtion type
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Apr 28, 2024
1 parent 3af6d42 commit 7c7b414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class GRDF {
* @return {Promise<Consommation>}
*/
public async getPCEConsumption (type: ConsommationType, pceList: string[], dateDebut: string, dateFin: string): Promise<Consommation> {
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
Expand Down

0 comments on commit 7c7b414

Please sign in to comment.