Renamed methods. Initial work on realtime dashboard.

This commit is contained in:
Mike Cao 2020-10-08 15:02:48 -07:00
parent b4ea70a67c
commit e64a555652
16 changed files with 246 additions and 86 deletions

View file

@ -285,7 +285,7 @@ export async function createAccount(data) {
);
}
export function getMetrics(website_id, start_at, end_at, filters = {}) {
export function getWebsiteStats(website_id, start_at, end_at, filters = {}) {
const params = [website_id, start_at, end_at];
const { url } = filters;
let urlFilter = '';
@ -317,7 +317,7 @@ export function getMetrics(website_id, start_at, end_at, filters = {}) {
);
}
export function getPageviews(
export function getPageviewStats(
website_id,
start_at,
end_at,