Skip to content

Commit 37e1711

Browse files
committed
change response in getEventDailyChart
1 parent 55480b8 commit 37e1711

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/models/eventsFactory.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,14 @@ class EventsFactory extends Factory {
499499
* @returns {Promise<Array>}
500500
*/
501501
async getEventDailyChart(groupHash, days, timezoneOffset = 0) {
502-
return this.findChartData(days, timezoneOffset, groupHash);
502+
const data = await this.findChartData(days, timezoneOffset, groupHash);
503+
504+
return [
505+
{
506+
label: 'accepted',
507+
data,
508+
},
509+
];
503510
}
504511

505512
/**

src/typeDefs/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ type Event {
290290
User's local timezone offset in minutes
291291
"""
292292
timezoneOffset: Int! = 0
293-
): [ChartDataItem!]!
293+
): [ChartLine!]!
294294
}
295295
296296
"""

0 commit comments

Comments
 (0)