mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Update report parameters.
This commit is contained in:
parent
e9b0d3f796
commit
43f5854f15
5 changed files with 27 additions and 20 deletions
|
|
@ -21,15 +21,11 @@ export function useReport(reportId, defaultParameters) {
|
|||
|
||||
const runReport = useCallback(
|
||||
async parameters => {
|
||||
const { websiteId, type, dateRange } = report;
|
||||
setIsRunning(true);
|
||||
|
||||
const data = await post(`/reports/${type}`, {
|
||||
websiteId: websiteId,
|
||||
...parameters,
|
||||
startAt: +dateRange?.startDate,
|
||||
endAt: +dateRange?.endDate,
|
||||
});
|
||||
const { type } = report;
|
||||
|
||||
const data = await post(`/reports/${type}`, parameters);
|
||||
|
||||
setReport(
|
||||
produce(state => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue