mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Should not check updates in cloud mode. Minor updates.
This commit is contained in:
parent
8062d7f698
commit
56ab099499
4 changed files with 10 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { addMinutes, differenceInMinutes } from 'date-fns';
|
||||
import { subMinutes, differenceInMinutes } from 'date-fns';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||
import { canViewWebsite } from 'lib/auth';
|
||||
|
|
@ -53,8 +53,8 @@ export default async (
|
|||
|
||||
const { startDate, endDate } = await parseDateRangeQuery(req);
|
||||
const diff = differenceInMinutes(endDate, startDate);
|
||||
const prevStartDate = addMinutes(startDate, -diff);
|
||||
const prevEndDate = addMinutes(endDate, -diff);
|
||||
const prevStartDate = subMinutes(startDate, diff);
|
||||
const prevEndDate = subMinutes(endDate, diff);
|
||||
|
||||
const metrics = await getWebsiteStats(websiteId, {
|
||||
startDate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue