feat: add analytics dashboard and registration page with updated Next.js routing configuration
Some checks failed
Build and Push App / build (push) Failing after 22m29s
Some checks failed
Build and Push App / build (push) Failing after 22m29s
This commit is contained in:
@@ -136,6 +136,7 @@ async function getMetrics(range: string = 'week', from?: string, to?: string) {
|
||||
|
||||
const recentIPs = await Promise.all(
|
||||
recentUniqueIPs.map(async (item) => {
|
||||
if (!item.ip || !item._max.createdAt) return null;
|
||||
return await prisma.analyticsEvent.findFirst({
|
||||
where: {
|
||||
ip: item.ip,
|
||||
|
||||
Reference in New Issue
Block a user