chore: add prettier with config and format all files
This commit is contained in:
@@ -5,7 +5,7 @@ import { withAuth } from '@/lib/apiHelpers';
|
||||
export const GET = withAuth(async (req: NextRequest) => {
|
||||
const p = req.nextUrl.searchParams;
|
||||
const from = p.get('from') ? new Date(p.get('from')!) : new Date(Date.now() - 86_400_000);
|
||||
const to = p.get('to') ? new Date(p.get('to')!) : new Date();
|
||||
const to = p.get('to') ? new Date(p.get('to')!) : new Date();
|
||||
const boundaries = await getSessionBoundaries(from, to);
|
||||
return NextResponse.json(boundaries);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user