Fix request first & second date

This commit is contained in:
2020-02-24 16:42:20 +01:00
parent 896a34f585
commit 1bc9fa379b
2 changed files with 1 additions and 272 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export default class ReportingRepository {
if (this.instance === undefined)
throw new Error("[ReportingRepository]: Please initiate the constructor first before calling a subfunction.");
return (await this.instance.get("api/reporting/v1/rooms/84e0fefa-5675-11e7-a349-00163efdd8db/chat-stats/daily/", {
params: { "start_date": _t.getFirstDate(), "end_date": _t.getFirstDate() }
params: { "start_date": _t.getFirstDate(), "end_date": _t.getSecondDate() }
})).data;
}