Add projectIds to CA service
This commit is contained in:
parent
1a123b36e3
commit
68d1a9a306
1 changed files with 6 additions and 2 deletions
|
@ -8,22 +8,26 @@ export default class CycleAnalyticsService {
|
|||
}
|
||||
|
||||
fetchCycleAnalyticsData(options = { startDate: 30 }) {
|
||||
const { startDate, projectIds } = options;
|
||||
|
||||
return this.axios
|
||||
.get('', {
|
||||
params: {
|
||||
'cycle_analytics[start_date]': options.startDate,
|
||||
'cycle_analytics[start_date]': startDate,
|
||||
'cycle_analytics[project_ids]': projectIds,
|
||||
},
|
||||
})
|
||||
.then(x => x.data);
|
||||
}
|
||||
|
||||
fetchStageData(options) {
|
||||
const { stage, startDate } = options;
|
||||
const { stage, startDate, projectIds } = options;
|
||||
|
||||
return this.axios
|
||||
.get(`events/${stage.name}.json`, {
|
||||
params: {
|
||||
'cycle_analytics[start_date]': startDate,
|
||||
'cycle_analytics[project_ids]': projectIds,
|
||||
},
|
||||
})
|
||||
.then(x => x.data);
|
||||
|
|
Loading…
Reference in a new issue