mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
fix usage.
This commit is contained in:
parent
c80be88d14
commit
4b421d08d0
1 changed files with 4 additions and 3 deletions
|
|
@ -6,8 +6,9 @@ import { getAllUserWebsitesIncludingTeamOwner, getEventDataUsage, getEventUsage
|
|||
import * as yup from 'yup';
|
||||
|
||||
export interface UserUsageRequestQuery {
|
||||
id: string;
|
||||
params: { startAt: string; endAt: string };
|
||||
userId: string;
|
||||
startAt: string;
|
||||
endAt: string;
|
||||
}
|
||||
|
||||
export interface UserUsageRequestResponse {
|
||||
|
|
@ -44,7 +45,7 @@ export default async (
|
|||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const { id: userId, startAt, endAt } = req.query;
|
||||
const { userId, startAt, endAt } = req.query;
|
||||
|
||||
const startDate = new Date(+startAt);
|
||||
const endDate = new Date(+endAt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue