Fix display of years.

This commit is contained in:
Mike Cao 2020-09-13 01:38:14 -07:00
parent 84a8b51790
commit a0cb278463
3 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import { getPageviews } from 'lib/queries';
import { ok, badRequest, methodNotAllowed } from 'lib/response';
import { useAuth } from 'lib/middleware';
const unitTypes = ['month', 'hour', 'day'];
const unitTypes = ['year', 'month', 'hour', 'day'];
export default async (req, res) => {
await useAuth(req, res);