We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55480b8 commit 37e1711Copy full SHA for 37e1711
src/models/eventsFactory.js
@@ -499,7 +499,14 @@ class EventsFactory extends Factory {
499
* @returns {Promise<Array>}
500
*/
501
async getEventDailyChart(groupHash, days, timezoneOffset = 0) {
502
- return this.findChartData(days, timezoneOffset, groupHash);
+ const data = await this.findChartData(days, timezoneOffset, groupHash);
503
+
504
+ return [
505
+ {
506
+ label: 'accepted',
507
+ data,
508
+ },
509
+ ];
510
}
511
512
/**
src/typeDefs/event.ts
@@ -290,7 +290,7 @@ type Event {
290
User's local timezone offset in minutes
291
"""
292
timezoneOffset: Int! = 0
293
- ): [ChartDataItem!]!
+ ): [ChartLine!]!
294
295
296
0 commit comments