mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Added year option.
This commit is contained in:
parent
38abd673f3
commit
5b45301178
4 changed files with 18 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ export default async (req, res) => {
|
|||
|
||||
const { id, start_at, end_at, unit, tz } = req.query;
|
||||
|
||||
if (!moment.tz.zone(tz) || !['hour', 'day'].includes(unit)) {
|
||||
if (!moment.tz.zone(tz) || !['month', 'hour', 'day'].includes(unit)) {
|
||||
return res.status(400).end();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue