There was an error while loading. Please reload this page.
1 parent fa0a38f commit 7a52f52Copy full SHA for 7a52f52
1 file changed
app/api/stats/route.ts
@@ -18,11 +18,11 @@ export async function GET(req: NextRequest) {
18
19
const stats: Stats[] = []
20
21
- for (var i = 0; i < since; i++) {
+ for (let i = 0; i < since; i++) {
22
if (today < minDate) {
23
break
24
}
25
- let date = today.toISOString().split('T')[0]
+ const date = today.toISOString().split('T')[0]
26
const [allVisits, allEventsByCategory] = await Promise.all([
27
await axios
28
.post<
0 commit comments