aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/app
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-04-15 14:48:49 -0700
committerDhravya <[email protected]>2024-04-15 14:48:49 -0700
commita4ac66f0ba1a413ea18ae3828737313f373eee4e (patch)
treee6074dd19c70d472c09a5beaa11e96d55a14a7b7 /apps/web/src/app
parentMerge branch 'main' of https://github.com/Dhravya/supermemory (diff)
downloadsupermemory-a4ac66f0ba1a413ea18ae3828737313f373eee4e.tar.xz
supermemory-a4ac66f0ba1a413ea18ae3828737313f373eee4e.zip
enter to send
Diffstat (limited to 'apps/web/src/app')
-rw-r--r--apps/web/src/app/page.tsx11
1 files changed, 4 insertions, 7 deletions
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();