From a4ac66f0ba1a413ea18ae3828737313f373eee4e Mon Sep 17 00:00:00 2001 From: Dhravya Date: Mon, 15 Apr 2024 14:48:49 -0700 Subject: enter to send --- apps/web/src/app/page.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'apps/web/src/app') diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index e8f6d2c3..5523fba6 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -9,10 +9,7 @@ import { import { and, eq, inArray, not } from "drizzle-orm"; import { cookies, headers } from "next/headers"; import { redirect } from "next/navigation"; -import { - fetchContentForSpace, - fetchFreeMemories, -} from "@/actions/db"; +import { fetchContentForSpace, fetchFreeMemories } from "@/actions/db"; import { MemoryProvider } from "@/contexts/MemoryContext"; import Content from "./content"; @@ -65,10 +62,10 @@ export default async function Home() { collectedSpaces.forEach(async (space) => { console.log("fetching "); const data = ( - await fetchContentForSpace(space.id, { + (await fetchContentForSpace(space.id, { offset: 0, limit: 3, - }) ?? [] + })) ?? [] ).map((data) => ({ ...data, space: space.id, @@ -77,7 +74,7 @@ export default async function Home() { }), ]); - console.log('contents', contents); + console.log("contents", contents); // freeMemories const freeMemories = await fetchFreeMemories(); -- cgit v1.2.3