Skip to content

Commit ccda646

Browse files
committed
e
1 parent 1868eaa commit ccda646

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

apps/web/src/app/page.tsx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,28 @@ export default async function Home() {
6464
// Fetch only first 3 content of each spaces
6565
let contents: (typeof storedContent.$inferSelect)[] = [];
6666

67+
//console.log(await db.select().from(storedContent).)
68+
6769
await Promise.all([
6870
collectedSpaces.forEach(async (space) => {
71+
console.log("fetching ")
72+
const data = await fetchContentForSpace(space.id, {
73+
offset: 0,
74+
limit: 3,
75+
})
76+
console.log(data)
6977
contents = [
7078
...contents,
71-
...(await fetchContentForSpace(space.id, {
72-
offset: 0,
73-
limit: 3,
74-
})),
79+
...data,
7580
];
7681
}),
7782
]);
7883

84+
console.log(contents)
85+
7986
// freeMemories
8087
const freeMemories = await fetchFreeMemories(userData.id);
8188

82-
// @dhravya test these 3 functions
83-
fetchFreeMemories;
84-
fetchContentForSpace;
85-
searchMemoriesAndSpaces;
86-
87-
collectedSpaces.push({
88-
id: 1,
89-
name: "Cool tech",
90-
user: null,
91-
});
92-
9389
return (
9490
<MemoryProvider
9591
user={userData}

0 commit comments

Comments
 (0)