change(ui) - cards api call

This commit is contained in:
Shekar Siri 2023-02-03 11:13:09 +01:00 committed by Taha Yassine Kraiem
parent 5fb2815676
commit bc7ad49c63

View file

@ -98,7 +98,7 @@ export default class MetricService {
}
fetchIssue(metricId: string, issueId: string, params: any): Promise<any> {
return this.client.post(`/custom_metrics/${metricId}/issues/${issueId}/sessions`, params)
return this.client.post(`/cards/${metricId}/issues/${issueId}/sessions`, params)
.then((response: { json: () => any; }) => response.json())
.then((response: { data: any; }) => response.data || {});
}