File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments