Skip to content

Commit

Permalink
fix: remove api.baseUrl duplicate (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland committed Jan 27, 2020
1 parent 81bb003 commit 42338c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/api/dataStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const apiPostDataStatistics = async id => {
const d2 = await getInstance();
const api = d2.Api.getApi();

const url = `${api.baseUrl}/dataStatistics?eventType=${EVENT_TYPE_CHART_VIEW}&favorite=${id}`;
const url = `/dataStatistics?eventType=${EVENT_TYPE_CHART_VIEW}&favorite=${id}`;

return api.post(url);
};

0 comments on commit 42338c1

Please sign in to comment.